From: Patrik Gornicz Date: Sun, 7 Dec 2008 20:30:43 +0000 (-0500) Subject: fixed uppercase key bug X-Git-Tag: physics-premerge~75 X-Git-Url: http://gitweb.pgornicz.com/gitweb.cgi?a=commitdiff_plain;h=6234dc8ac6f39176121740b756828f0cba565149;p=libbear.git fixed uppercase key bug --- diff --git a/configs/keys.cfg b/configs/keys.cfg index 3d66889..6392bb0 100644 --- a/configs/keys.cfg +++ b/configs/keys.cfg @@ -1,4 +1,4 @@ follow = F well = Space end = Esc -pause = p +pause = P diff --git a/src/config/reader.cpp b/src/config/reader.cpp index a981719..0335faf 100644 --- a/src/config/reader.cpp +++ b/src/config/reader.cpp @@ -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 {