From 7e89857e908f3e04fb9da9d3ffcc4cfed118d5ad Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 8 Jan 2014 11:39:49 +0300 Subject: fix named input actions in gui before logging into game. --- src/input/inputmanager.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/input') 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; -- cgit v1.2.3-70-g09d2