Corrects the additon of SDLK_CONTEXT_MENU (and scancodes).
This commit is contained in:
parent
8da70d5aa1
commit
424032b0ca
3 changed files with 5 additions and 3 deletions
|
@ -261,8 +261,8 @@
|
||||||
/* #undef SDL_AUDIO_DRIVER_OSS */
|
/* #undef SDL_AUDIO_DRIVER_OSS */
|
||||||
/* #undef SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H */
|
/* #undef SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H */
|
||||||
/* #undef SDL_AUDIO_DRIVER_PAUDIO */
|
/* #undef SDL_AUDIO_DRIVER_PAUDIO */
|
||||||
/* #undef SDL_AUDIO_DRIVER_PULSEAUDIO */
|
#define SDL_AUDIO_DRIVER_PULSEAUDIO 1
|
||||||
/* #undef SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC */
|
#define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC "libpulse-simple.so.0"
|
||||||
/* #undef SDL_AUDIO_DRIVER_QSA */
|
/* #undef SDL_AUDIO_DRIVER_QSA */
|
||||||
#define SDL_AUDIO_DRIVER_SNDIO 1
|
#define SDL_AUDIO_DRIVER_SNDIO 1
|
||||||
/* #undef SDL_AUDIO_DRIVER_SNDIO_DYNAMIC */
|
/* #undef SDL_AUDIO_DRIVER_SNDIO_DYNAMIC */
|
||||||
|
|
|
@ -403,7 +403,7 @@ typedef enum
|
||||||
/* @} *//* Usage page 0x0C (additional media keys) */
|
/* @} *//* Usage page 0x0C (additional media keys) */
|
||||||
|
|
||||||
/* Add any other keys here. */
|
/* Add any other keys here. */
|
||||||
SDL_SCANCODE_CONTEXT_MENU = 438,
|
SDL_SCANCODE_CONTEXT_MENU = 287,
|
||||||
|
|
||||||
SDL_NUM_SCANCODES = 512 /**< not a key, just marks the number of scancodes
|
SDL_NUM_SCANCODES = 512 /**< not a key, just marks the number of scancodes
|
||||||
for array bounds */
|
for array bounds */
|
||||||
|
|
|
@ -277,6 +277,7 @@ static const SDL_Keycode SDL_default_keymap[SDL_NUM_SCANCODES] = {
|
||||||
SDLK_APP2,
|
SDLK_APP2,
|
||||||
SDLK_AUDIOREWIND,
|
SDLK_AUDIOREWIND,
|
||||||
SDLK_AUDIOFASTFORWARD,
|
SDLK_AUDIOFASTFORWARD,
|
||||||
|
SDLK_CONTEXT_MENU,
|
||||||
};
|
};
|
||||||
|
|
||||||
static const char *SDL_scancode_names[SDL_NUM_SCANCODES] = {
|
static const char *SDL_scancode_names[SDL_NUM_SCANCODES] = {
|
||||||
|
@ -513,6 +514,7 @@ static const char *SDL_scancode_names[SDL_NUM_SCANCODES] = {
|
||||||
"App2",
|
"App2",
|
||||||
"AudioRewind",
|
"AudioRewind",
|
||||||
"AudioFastForward",
|
"AudioFastForward",
|
||||||
|
"ContextMenu",
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Taken from SDL_iconv() */
|
/* Taken from SDL_iconv() */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue