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
This commit is contained in:
Glenn Rice 2010-06-12 14:05:12 +00:00
parent ebbe2d905c
commit b336617cbf
1 changed files with 4 additions and 0 deletions

View File

@ -100,6 +100,10 @@ Keyboard::Key::Key(Display* const display, KeyCode keycode)
}
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.
if (keysym == NoSymbol || keysym > 0x0110ffff)