diff options
author | Garrett Brown <themagnificentmrb@gmail.com> | 2024-02-08 17:55:33 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-08 17:55:33 -0800 |
commit | ea913daea46ddef5052e9fa7aff3f976eccba60e (patch) | |
tree | 880a2809dc5cf1b52667361fcd394db661d9fc36 /xbmc/peripherals/devices/PeripheralJoystick.h | |
parent | e20ee08b4b949a59cb7ac7a20fb82f824e79c284 (diff) | |
parent | 7e411667cf8295e56d7cc0b499682471a4b62710 (diff) |
Merge pull request #24650 from garbear/game-improvements
Minor game improvements
Diffstat (limited to 'xbmc/peripherals/devices/PeripheralJoystick.h')
-rw-r--r-- | xbmc/peripherals/devices/PeripheralJoystick.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/xbmc/peripherals/devices/PeripheralJoystick.h b/xbmc/peripherals/devices/PeripheralJoystick.h index 8dd87ed464..916125b9a8 100644 --- a/xbmc/peripherals/devices/PeripheralJoystick.h +++ b/xbmc/peripherals/devices/PeripheralJoystick.h @@ -21,8 +21,6 @@ #include <string> #include <vector> -#define JOYSTICK_PORT_UNKNOWN (-1) - namespace KODI { namespace JOYSTICK @@ -66,7 +64,7 @@ public: void UnregisterJoystickDriverHandler(KODI::JOYSTICK::IDriverHandler* handler) override; KODI::JOYSTICK::IDriverReceiver* GetDriverReceiver() override { return this; } KODI::KEYMAP::IKeymap* GetKeymap(const std::string& controllerId) override; - CDateTime LastActive() override { return m_lastActive; } + CDateTime LastActive() const override { return m_lastActive; } KODI::GAME::ControllerPtr ControllerProfile() const override; void SetControllerProfile(const KODI::GAME::ControllerPtr& controller) override; @@ -132,7 +130,7 @@ protected: // State parameters std::string m_strProvider; - int m_requestedPort = JOYSTICK_PORT_UNKNOWN; + int m_requestedPort{JOYSTICK_NO_PORT_REQUESTED}; unsigned int m_buttonCount = 0; unsigned int m_hatCount = 0; unsigned int m_axisCount = 0; |