summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon
diff options
context:
space:
mode:
authorGlenn Rice <glennricster@gmail.com>2010-06-12 14:05:12 +0000
committerGlenn Rice <glennricster@gmail.com>2010-06-12 14:05:12 +0000
commitb336617cbf2b2e0e40d68d0f10012e589f596752 (patch)
treefd11373ac283235f0a8d8642e85a578e4c32d6cb /Source/Core/InputCommon
parentebbe2d905cd13dee04828400d8aa0beb96452377 (diff)
Convert xlib keynames to uppercase to be consistent with Billiard's defaults and keep the GUI pretty.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5657 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/InputCommon')
-rw-r--r--Source/Core/InputCommon/Src/ControllerInterface/Xlib/Xlib.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/Core/InputCommon/Src/ControllerInterface/Xlib/Xlib.cpp b/Source/Core/InputCommon/Src/ControllerInterface/Xlib/Xlib.cpp
index 1c9e9997ad..5ff85adf32 100644
--- a/Source/Core/InputCommon/Src/ControllerInterface/Xlib/Xlib.cpp
+++ b/Source/Core/InputCommon/Src/ControllerInterface/Xlib/Xlib.cpp
@@ -99,6 +99,10 @@ Keyboard::Key::Key(Display* const display, KeyCode keycode)
i++;
}
while (keysym == NoSymbol && i < 8);
+
+ // Convert to upper case for the keyname
+ if (keysym >= 97 && keysym <= 122)
+ keysym = keysym - 32;
// 0x0110ffff is the top of the unicode character range according to keysymdef.h
// although it is probably more than we need.