11 #include "IButtonMapper.h" 31 void MapActions(
int windowID,
const TiXmlNode* pDevice)
override;
32 void Clear()
override;
34 std::vector<std::shared_ptr<const IWindowKeymap>> GetJoystickKeymaps()
const;
37 void DeserializeJoystickNode(
const TiXmlNode* pDevice, std::string& controllerId);
38 bool DeserializeButton(
const TiXmlElement* pButton,
40 KODI::JOYSTICK::ANALOG_STICK_DIRECTION& dir,
41 unsigned int& holdtimeMs,
42 std::set<std::string>& hotkeys,
43 std::string& actionStr);
45 using ControllerID = std::string;
46 std::map<ControllerID, std::shared_ptr<IWindowKeymap>> m_joystickKeymaps;
48 std::vector<std::string> m_controllerIds;
Definition: JoystickMapper.h:24
Interface for mapping buttons to Kodi actions for specific windows.
Definition: IKeymap.h:54