mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-05-17 10:18:28 +00:00
Prepend key modifier enum values with 'SDL_'
This commit is contained in:
parent
b7ac14f2bd
commit
abdfa809db
23 changed files with 280 additions and 199 deletions
|
@ -1797,9 +1797,9 @@ void SDLTest_CommonEvent(SDLTest_CommonState *state, SDL_Event *event, int *done
|
|||
break;
|
||||
case SDL_KEYDOWN:
|
||||
{
|
||||
SDL_bool withControl = !!(event->key.keysym.mod & KMOD_CTRL);
|
||||
SDL_bool withShift = !!(event->key.keysym.mod & KMOD_SHIFT);
|
||||
SDL_bool withAlt = !!(event->key.keysym.mod & KMOD_ALT);
|
||||
SDL_bool withControl = !!(event->key.keysym.mod & SDL_KMOD_CTRL);
|
||||
SDL_bool withShift = !!(event->key.keysym.mod & SDL_KMOD_SHIFT);
|
||||
SDL_bool withAlt = !!(event->key.keysym.mod & SDL_KMOD_ALT);
|
||||
|
||||
switch (event->key.keysym.sym) {
|
||||
/* Add hotkeys here */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue