summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/keyboardconfig.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/keyboardconfig.cpp b/src/keyboardconfig.cpp
index dfd461db..3632acf9 100644
--- a/src/keyboardconfig.cpp
+++ b/src/keyboardconfig.cpp
@@ -228,7 +228,8 @@ bool KeyboardConfig::isKeyActive(int index) const
{
if (!mActiveKeys)
return false;
- return mActiveKeys[mKey[index].value];
+ int scanCode = SDL_GetScancodeFromKey(mKey[index].value);
+ return mActiveKeys[scanCode];
}
void KeyboardConfig::refreshActiveKeys()