Renamed SDL_Key to SDL_Keycode to clarify terminology.

This commit is contained in:
Sam Lantinga 2011-02-07 10:40:21 -08:00
parent cc52151bca
commit acee78a1c2
12 changed files with 34 additions and 34 deletions

View file

@ -40,7 +40,7 @@
* the unmodified character that would be generated by pressing the key, or
* an SDLK_* constant for those keys that do not generate characters.
*/
typedef Sint32 SDL_Key;
typedef Sint32 SDL_Keycode;
#define SDLK_SCANCODE_MASK (1<<30)
#define SDL_SCANCODE_TO_KEYCODE(X) (X | SDLK_SCANCODE_MASK)
@ -330,7 +330,7 @@ typedef enum
KMOD_CAPS = 0x2000,
KMOD_MODE = 0x4000,
KMOD_RESERVED = 0x8000
} SDL_Mod;
} SDL_Keymod;
#define KMOD_CTRL (KMOD_LCTRL|KMOD_RCTRL)
#define KMOD_SHIFT (KMOD_LSHIFT|KMOD_RSHIFT)