diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-01-08 11:39:49 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-01-08 11:39:49 +0300 |
commit | 7e89857e908f3e04fb9da9d3ffcc4cfed118d5ad (patch) | |
tree | 393b8f228e3df776fb06f00c9c18df15376b366d /src/input | |
parent | 276a5f9f7ef2f1fd5fad7339db2d2a9154ce9870 (diff) | |
download | manaverse-7e89857e908f3e04fb9da9d3ffcc4cfed118d5ad.tar.gz manaverse-7e89857e908f3e04fb9da9d3ffcc4cfed118d5ad.tar.bz2 manaverse-7e89857e908f3e04fb9da9d3ffcc4cfed118d5ad.tar.xz manaverse-7e89857e908f3e04fb9da9d3ffcc4cfed118d5ad.zip |
fix named input actions in gui before logging into game.
Diffstat (limited to 'src/input')
-rw-r--r-- | src/input/inputmanager.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/input/inputmanager.cpp b/src/input/inputmanager.cpp index c0d3a1d0f..2bc0786fb 100644 --- a/src/input/inputmanager.cpp +++ b/src/input/inputmanager.cpp @@ -524,6 +524,7 @@ bool InputManager::handleEvent(const SDL_Event &event) { case SDL_KEYDOWN: { + keyboard.refreshActiveKeys(); updateConditionMask(); if (handleAssignKey(event, INPUT_KEYBOARD)) return true; @@ -551,6 +552,7 @@ bool InputManager::handleEvent(const SDL_Event &event) } case SDL_KEYUP: { + keyboard.refreshActiveKeys(); updateConditionMask(); keyboard.handleDeActicateKey(event); break; |