From 0ab31bcec40c2b512e22a09ac62d6d53d8ae09ed Mon Sep 17 00:00:00 2001 From: Stephen Anthony Date: Mon, 5 Aug 2019 09:27:38 -0230 Subject: [PATCH] Fix minor compile warnings in clang. --- src/common/PhysicalJoystick.hxx | 4 +--- src/emucore/EventHandler.hxx | 4 ++-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/common/PhysicalJoystick.hxx b/src/common/PhysicalJoystick.hxx index d0b2f7f26..b545ebc6f 100644 --- a/src/common/PhysicalJoystick.hxx +++ b/src/common/PhysicalJoystick.hxx @@ -35,13 +35,11 @@ @author Stephen Anthony, Thomas Jentzsch */ - - class PhysicalJoystick { friend class PhysicalJoystickHandler; - static constexpr char MODE_DELIM = '§'; // must not be '^', '|' or '#' + static constexpr char MODE_DELIM = 0xA7; //'§', must not be '^', '|' or '#' public: PhysicalJoystick(); diff --git a/src/emucore/EventHandler.hxx b/src/emucore/EventHandler.hxx index 73e82ebb7..b173a77a3 100644 --- a/src/emucore/EventHandler.hxx +++ b/src/emucore/EventHandler.hxx @@ -138,7 +138,7 @@ class EventHandler These events cannot be remapped. @param type The event - @param pressed Pressed (true) or released (false) + @param value The value to use for the event @param repeated Repeated key (true) or first press/release (false) */ void handleEvent(Event::Type type, Int32 value = 1, bool repeated = false); @@ -234,7 +234,7 @@ class EventHandler @param stick The joystick number @param button The joystick button @param hat The joystick hat - @param value The value on the given hat + @param dir The value on the given hat @param updateMenus Whether to update the action mappings (normally we want to do this, unless there are a batch of 'adds', in which case it's delayed until the end