11 #include "PeripheralAddon.h" 12 #include "input/joysticks/DriverPrimitive.h" 14 #include "input/joysticks/interfaces/IButtonMap.h" 15 #include "peripherals/PeripheralTypes.h" 16 #include "threads/CriticalSection.h" 26 const std::weak_ptr<CPeripheralAddon>& addon,
27 const std::string& strControllerId);
32 std::string
ControllerID(
void)
const override {
return m_strControllerId; }
34 std::string
Location(
void)
const override;
36 bool Load(
void)
override;
38 void Reset(
void)
override;
40 bool IsEmpty(
void)
const override;
54 KODI::JOYSTICK::ANALOG_STICK_DIRECTION direction,
58 KODI::JOYSTICK::ANALOG_STICK_DIRECTION direction,
62 KODI::JOYSTICK::RELATIVE_POINTER_DIRECTION direction,
66 KODI::JOYSTICK::RELATIVE_POINTER_DIRECTION direction,
102 const std::vector<KODI::JOYSTICK::CDriverPrimitive>& primitives)
override;
106 bool GetAxisProperties(
unsigned int axisIndex,
int& center,
unsigned int& range)
override;
113 typedef std::map<KODI::JOYSTICK::CDriverPrimitive, KODI::JOYSTICK::FeatureName> DriverMap;
114 typedef std::vector<KODI::JOYSTICK::CDriverPrimitive> JoystickPrimitiveVector;
117 static DriverMap CreateLookupTable(
const FeatureMap& features);
121 KODI::JOYSTICK::RELATIVE_POINTER_DIRECTION dir);
126 std::weak_ptr<CPeripheralAddon> m_addon;
127 const std::string m_strControllerId;
128 FeatureMap m_features;
129 DriverMap m_driverMap;
130 JoystickPrimitiveVector m_ignoredPrimitives;
131 mutable CCriticalSection m_mutex;
THROTTLE_DIRECTION
Directions on a throttle.
Definition: JoystickTypes.h:130
JOYSTICK_FEATURE_PRIMITIVE
Definition: peripheral.h:535
Definition: RetroPlayerInput.h:15
FEATURE_TYPE
Types of features used in the joystick library.
Definition: JoystickTypes.h:49
WHEEL_DIRECTION
Directions on a wheel.
Definition: JoystickTypes.h:120
Basic driver element associated with input events.
Definition: DriverPrimitive.h:69
std::string FeatureName
Name of a physical feature belonging to the joystick.
Definition: JoystickTypes.h:28
Definition: Peripheral.h:62