11 #include "GUIDialogButtonCapture.h" 37 std::string GetDialogText()
override;
38 std::string GetDialogHeader()
override;
42 void OnClose(
bool bAccepted)
override {}
45 void AddAxis(
const std::string& deviceLocation,
unsigned int axisIndex);
48 using DeviceName = std::string;
49 using AxisIndex =
unsigned int;
50 using AxisEntry = std::pair<DeviceName, AxisIndex>;
51 using AxisVector = std::vector<AxisEntry>;
54 AxisVector m_detectedAxes;
Interface for mapping buttons to Kodi actions.
Definition: IKeymap.h:22
bool AcceptsPrimitive(JOYSTICK::PRIMITIVE_TYPE type) const override
Return true if the button mapper accepts primitives of the given type.
Definition: GUIDialogAxisDetection.cpp:53
PRIMITIVE_TYPE
Type of driver primitive.
Definition: JoystickTypes.h:150
Definition: AudioDecoder.h:18
Definition: GUIDialogAxisDetection.h:24
Basic driver element associated with input events.
Definition: DriverPrimitive.h:69
void OnLateAxis(const JOYSTICK::IButtonMap *buttonMap, unsigned int axisIndex) override
Called when an axis has been detected after mapping began.
Definition: GUIDialogAxisDetection.cpp:66