11 #include "GUIDialogButtonCapture.h" 34 std::string GetDialogText()
override;
35 std::string GetDialogHeader()
override;
39 void OnClose(
bool bAccepted)
override {}
42 void AddAxis(
const std::string& deviceLocation,
unsigned int axisIndex);
45 using DeviceName = std::string;
46 using AxisIndex =
unsigned int;
47 using AxisEntry = std::pair<DeviceName, AxisIndex>;
48 using AxisVector = std::vector<AxisEntry>;
51 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
Controller configuration window.
Definition: AudioDecoder.h:18
Definition: GUIDialogAxisDetection.h:21
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