11 #include "input/actions/Action.h" 12 #include "network/EventClient.h" 38 bool AddDevice(
const std::string& strDevice);
39 bool RemoveDevice(
const std::string& strDevice);
63 void RegisterMapper(
const std::string& device,
IButtonMapper* mapper);
66 static uint32_t TranslateString(
const std::string& strMap,
const std::string& strButton);
75 typedef std::multimap<uint32_t, CButtonAction> buttonMap;
78 std::map<int, buttonMap> m_translatorMap;
81 std::set<std::string> m_deviceList;
83 unsigned int GetActionCode(
int window,
const CKey& key, std::string& strAction)
const;
85 void MapWindowActions(
const TiXmlNode* pWindow,
int wWindowID);
86 void MapAction(uint32_t buttonCode,
const std::string& szAction, buttonMap& map);
88 bool LoadKeymap(
const std::string& keymapPath);
90 bool HasLongpressMapping_Internal(
int window,
const CKey& key);
92 std::map<std::string, IButtonMapper*> m_buttonMappers;
Definition: TouchTranslator.h:18
class encapsulating information regarding a particular user action to be sent to windows and controls...
Definition: Action.h:22
Definition: CustomControllerTranslator.h:18
Interface for mapping buttons to Kodi actions for specific windows.
Definition: IKeymap.h:54