summaryrefslogtreecommitdiff
path: root/src/input
diff options
context:
space:
mode:
Diffstat (limited to 'src/input')
-rw-r--r--src/input/inputmanager.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/input/inputmanager.cpp b/src/input/inputmanager.cpp
index 1f9869d4d..837e1d811 100644
--- a/src/input/inputmanager.cpp
+++ b/src/input/inputmanager.cpp
@@ -256,6 +256,10 @@ void InputManager::resetKey(const InputActionT i) restrict2
val1.value = SDL_GetScancodeFromKey(kd.defaultValue2);
else
val1.value = kd.defaultValue2;
+ if (val0.value == SDL_SCANCODE_UNKNOWN)
+ val0.value = -1;
+ if (val1.value == SDL_SCANCODE_UNKNOWN)
+ val1.value = -1;
#else
val0.value = kd.defaultValue1;
val1.value = kd.defaultValue2;