fixed uppercase key bug
[physics.git] / src / config / reader.cpp
index a981719..0335faf 100644 (file)
@@ -208,7 +208,7 @@ void createKeyMap()
     for (int i = 'A'; i <= 'Z'; i++)   // uppercase
     {
         buf[0] = (char)i;
-        keyMap[buf] = (SDLKey)i;
+        keyMap[buf] = (SDLKey)(i + 'a' - 'A');
     }
     for (int i = 'a'; i <= 'z'; i++)   // lowercase
     {