11 #include "IButtonMapper.h" 24 void MapActions(
int windowID,
const TiXmlNode* bDevice)
override;
25 void Clear()
override;
27 bool TranslateTouchAction(
28 int window,
int touchAction,
int touchPointers,
int& action, std::string& actionString);
31 bool TranslateAction(
int window,
32 unsigned int touchCommand,
34 unsigned int& actionId,
35 std::string& actionString);
39 unsigned int actionId;
40 std::string strAction;
43 using TouchActionKey =
unsigned int;
44 using TouchActionMap = std::map<TouchActionKey, CTouchAction>;
47 using TouchMap = std::map<WindowID, TouchActionMap>;
49 unsigned int GetActionID(WindowID window,
50 TouchActionKey touchActionKey,
51 std::string& actionString);
53 static unsigned int TranslateTouchCommand(
const TiXmlElement* pButton, CTouchAction& action);
55 static unsigned int GetTouchActionKey(
unsigned int touchCommandId,
int touchPointers);
Definition: TouchTranslator.h:18