11 #include "input/actions/Action.h" 12 #include "network/EventClient.h" 42 bool AddDevice(
const std::string& strDevice);
43 bool RemoveDevice(
const std::string& strDevice);
56 bool HasLongpressMapping(
int window,
const CKey& key);
65 CAction GetAction(
int window,
const CKey& key,
bool fallback =
true);
67 void RegisterMapper(
const std::string& device,
IButtonMapper* mapper);
70 static uint32_t TranslateString(
const std::string& strMap,
const std::string& strButton);
79 typedef std::multimap<uint32_t, CButtonAction> buttonMap;
82 std::map<int, buttonMap> m_translatorMap;
85 std::set<std::string> m_deviceList;
87 unsigned int GetActionCode(
int window,
const CKey& key, std::string& strAction)
const;
89 void MapWindowActions(
const tinyxml2::XMLNode* pWindow,
int wWindowID);
90 void MapAction(uint32_t buttonCode,
const std::string& szAction, buttonMap& map);
92 bool LoadKeymap(
const std::string& keymapPath);
94 bool HasLongpressMapping_Internal(
int window,
const CKey& key);
96 std::map<std::string, IButtonMapper*> m_buttonMappers;
Definition: SkinTimerManager.h:18
Definition: TouchTranslator.h:22
class encapsulating information regarding a particular user action to be sent to windows and controls...
Definition: Action.h:22
Definition: CustomControllerTranslator.h:21
Interface for mapping buttons to Kodi actions for specific windows.
Definition: IKeymap.h:54