Follow-up on previous commit: Generalized the "Command" key support, it compiles on all platforms and somebody may want to plug a Mac keyboard in a PC :)

Added a "command" symbol in the fonts, so shortcuts that use this key can be displayed.
Fixed: In Keyboard settings, some very weird keys (Thinkpad "volume up") were displayed with a wrong number.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@806 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Yves Rizoud
2009-05-14 18:42:03 +00:00
parent 2feab9d52c
commit 4a39819c86
4 changed files with 14 additions and 16 deletions

View File

@@ -356,22 +356,22 @@ int Handle_key_release(SDL_KeyboardEvent event)
case SDLK_LSHIFT:
modifier=MOD_SHIFT;
break;
case SDLK_RCTRL:
case SDLK_LCTRL:
modifier=MOD_CTRL;
break;
case SDLK_RALT:
case SDLK_LALT:
case SDLK_MODE:
modifier=MOD_ALT;
break;
#if defined(__macosx__)
case SDLK_RMETA:
case SDLK_LMETA:
modifier=MOD_META;
break;
#endif
default:
modifier=0;