Adds SDLK_CONTEXT_MENU (and scancode).
This commit is contained in:
parent
f1003e7110
commit
8da70d5aa1
3 changed files with 6 additions and 1 deletions
|
@ -316,7 +316,9 @@ enum
|
|||
SDLK_APP2 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_APP2),
|
||||
|
||||
SDLK_AUDIOREWIND = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_AUDIOREWIND),
|
||||
SDLK_AUDIOFASTFORWARD = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_AUDIOFASTFORWARD)
|
||||
SDLK_AUDIOFASTFORWARD = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_AUDIOFASTFORWARD),
|
||||
|
||||
SDLK_CONTEXT_MENU = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_CONTEXT_MENU),
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
@ -403,6 +403,7 @@ typedef enum
|
|||
/* @} *//* Usage page 0x0C (additional media keys) */
|
||||
|
||||
/* Add any other keys here. */
|
||||
SDL_SCANCODE_CONTEXT_MENU = 438,
|
||||
|
||||
SDL_NUM_SCANCODES = 512 /**< not a key, just marks the number of scancodes
|
||||
for array bounds */
|
||||
|
|
|
@ -396,6 +396,8 @@ SDL_EVDEV_translate_keycode(int keycode)
|
|||
|
||||
if (keycode < SDL_arraysize(linux_scancode_table))
|
||||
scancode = linux_scancode_table[keycode];
|
||||
if(keycode == KEY_CONTEXT_MENU)
|
||||
scancode = SDL_SCANCODE_CONTEXT_MENU;
|
||||
|
||||
/*
|
||||
if (scancode == SDL_SCANCODE_UNKNOWN) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue