diff options
Diffstat (limited to 'src/keyboardconfig.cpp')
-rw-r--r-- | src/keyboardconfig.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/keyboardconfig.cpp b/src/keyboardconfig.cpp index cf620148e..50bdaf295 100644 --- a/src/keyboardconfig.cpp +++ b/src/keyboardconfig.cpp @@ -397,6 +397,9 @@ void KeyboardConfig::retrieve() { mKey[i].value = static_cast<int>(config.getValue( mKey[i].configField, mKey[i].defaultValue)); + logger->log("key: %d", mKey[i].value); + if (mKey[i].value < -255 || mKey[i].value > SDLK_LAST) + mKey[i].value = KEY_NO_VALUE; } } } |