diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/client.cpp | 10 | ||||
-rw-r--r-- | src/gui/widgets/dropdown.cpp | 2 | ||||
-rw-r--r-- | src/inputmanager.cpp | 2 |
3 files changed, 10 insertions, 4 deletions
diff --git a/src/client.cpp b/src/client.cpp index 077b195c1..7c059d968 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -863,14 +863,20 @@ int Client::gameExec() break; case SDL_KEYDOWN: - if (inputManager.handleAssignKey(event, INPUT_KEYBOARD)) + if (inputManager.handleAssignKey( + event, INPUT_KEYBOARD)) + { continue; + } inputManager.updateConditionMask(); break; case SDL_KEYUP: - if (inputManager.handleAssignKey(event, INPUT_KEYBOARD)) + if (inputManager.handleAssignKey( + event, INPUT_KEYBOARD)) + { continue; + } inputManager.updateConditionMask(); break; diff --git a/src/gui/widgets/dropdown.cpp b/src/gui/widgets/dropdown.cpp index 5ecfba84d..0fc3675a2 100644 --- a/src/gui/widgets/dropdown.cpp +++ b/src/gui/widgets/dropdown.cpp @@ -237,7 +237,7 @@ void DropDown::keyPressed(gcn::KeyEvent& keyEvent) int actionId = static_cast<KeyEvent*>(&keyEvent)->getActionId(); - switch(actionId) + switch (actionId) { case Input::KEY_GUI_SELECT: case Input::KEY_GUI_SELECT2: diff --git a/src/inputmanager.cpp b/src/inputmanager.cpp index 4617bed19..60e4a7bca 100644 --- a/src/inputmanager.cpp +++ b/src/inputmanager.cpp @@ -156,7 +156,7 @@ void InputManager::store() if (key.type != INPUT_UNKNOWN) { std::string tmp = "k"; - switch(key.type) + switch (key.type) { case INPUT_MOUSE: tmp = "m"; |