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:
4
input.c
4
input.c
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user