mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-27 14:58:32 +00:00
Fix the linux keyboard.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4951 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
cb47eb27cc
commit
b17c5f3cf3
4 changed files with 14 additions and 5 deletions
|
@ -99,7 +99,15 @@ KeySym wxCharCodeWXToX(int id)
|
|||
case WXK_F24: keySym = XK_F24; break;
|
||||
case WXK_NUMLOCK: keySym = XK_Num_Lock; break;
|
||||
case WXK_SCROLL: keySym = XK_Scroll_Lock; break;
|
||||
default: keySym = id <= 255 ? (KeySym)id : 0;
|
||||
// Input fix: Config dialogs read all alphabetic characters as UPPERCASE and
|
||||
// saves the UPPERCASE keycodes. X11 reads these as lowercase by default.
|
||||
default:
|
||||
if (id >= 65 && id <= 90)
|
||||
// Standard uppercase letter: return lowercase keycode
|
||||
keySym = (KeySym)id + 32;
|
||||
else
|
||||
// All other keyboard characters
|
||||
keySym = id <= 255 ? (KeySym)id : 0;
|
||||
}
|
||||
|
||||
return keySym;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue