aboutsummaryrefslogtreecommitdiff
path: root/xbmc/peripherals/devices/PeripheralJoystick.h
diff options
context:
space:
mode:
Diffstat (limited to 'xbmc/peripherals/devices/PeripheralJoystick.h')
-rw-r--r--xbmc/peripherals/devices/PeripheralJoystick.h6
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;