From 23f87c10db7e6b149e9e1f351e1a82516c545df7 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 18 Apr 2012 02:58:23 +0300 Subject: First step for dehardcode input handling in widgets. Now widgets can check for input event. --- src/inputmanager.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/inputmanager.h') diff --git a/src/inputmanager.h b/src/inputmanager.h index b8114d906..82e5fd5b7 100644 --- a/src/inputmanager.h +++ b/src/inputmanager.h @@ -134,7 +134,8 @@ class InputManager int getNewKeyIndex() const { return mNewKeyIndex; } - void updateKeyActionMap(KeyToActionMap &actionMap, int type); + void updateKeyActionMap(KeyToActionMap &actionMap, + KeyToIdMap &idMap, int type); bool invokeKey(const KeyData *key, int keyNum); @@ -148,6 +149,8 @@ class InputManager void updateConditionMask(); + int getActionByKey(const SDL_Event &event); + protected: Setup_Input *mSetupInput; /**< Reference to setup window */ -- cgit v1.2.3-70-g09d2