11 #include "input/actions/Action.h" 12 #include "network/EventClient.h" 29 class CCustomControllerTranslator;
30 class CTouchTranslator;
52 bool AddDevice(
const std::string& strDevice);
53 bool RemoveDevice(
const std::string& strDevice);
66 bool HasLongpressMapping(
int window,
const CKey& key);
75 CAction GetAction(
int window,
const CKey& key,
bool fallback =
true);
77 void RegisterMapper(
const std::string& device,
IKeyMapper* mapper);
78 void UnregisterMapper(
const IKeyMapper* mapper);
80 static uint32_t TranslateString(
const std::string& strMap,
const std::string& strButton);
89 typedef std::multimap<uint32_t, CButtonAction> buttonMap;
92 std::map<int, buttonMap> m_translatorMap;
95 std::set<std::string> m_deviceList;
97 unsigned int GetActionCode(
int window,
const CKey& key, std::string& strAction)
const;
99 void MapWindowActions(
const tinyxml2::XMLNode* pWindow,
int wWindowID);
100 void MapAction(uint32_t buttonCode,
const std::string& szAction, buttonMap& map);
102 bool LoadKeymap(
const std::string& keymapPath);
104 bool HasLongpressMapping_Internal(
int window,
const CKey& key);
106 std::map<std::string, IKeyMapper*> m_buttonMappers;
Definition: AddonInfoBuilder.h:21
Interface for classes that can map buttons to Kodi actions.
Definition: IKeyMapper.h:25
Class encapsulating information regarding a particular user action to be sent to windows and controls...
Definition: Action.h:21
Definition: AudioDecoder.h:18