comparison include/SDL_keysym.h @ 5225:1fbe1c202501

Renamed SDL_Key to SDL_Keycode to clarify terminology.
author Sam Lantinga <slouken@libsdl.org>
date Mon, 07 Feb 2011 10:40:21 -0800
parents c1a92e61907d
children b530ef003506
comparison
equal deleted inserted replaced
5224:c1a92e61907d 5225:1fbe1c202501
38 * Values of this type are used to represent keyboard keys using the current 38 * Values of this type are used to represent keyboard keys using the current
39 * layout of the keyboard. These values include Unicode values representing 39 * layout of the keyboard. These values include Unicode values representing
40 * the unmodified character that would be generated by pressing the key, or 40 * the unmodified character that would be generated by pressing the key, or
41 * an SDLK_* constant for those keys that do not generate characters. 41 * an SDLK_* constant for those keys that do not generate characters.
42 */ 42 */
43 typedef Sint32 SDL_Key; 43 typedef Sint32 SDL_Keycode;
44 44
45 #define SDLK_SCANCODE_MASK (1<<30) 45 #define SDLK_SCANCODE_MASK (1<<30)
46 #define SDL_SCANCODE_TO_KEYCODE(X) (X | SDLK_SCANCODE_MASK) 46 #define SDL_SCANCODE_TO_KEYCODE(X) (X | SDLK_SCANCODE_MASK)
47 47
48 enum 48 enum
328 KMOD_RGUI = 0x0800, 328 KMOD_RGUI = 0x0800,
329 KMOD_NUM = 0x1000, 329 KMOD_NUM = 0x1000,
330 KMOD_CAPS = 0x2000, 330 KMOD_CAPS = 0x2000,
331 KMOD_MODE = 0x4000, 331 KMOD_MODE = 0x4000,
332 KMOD_RESERVED = 0x8000 332 KMOD_RESERVED = 0x8000
333 } SDL_Mod; 333 } SDL_Keymod;
334 334
335 #define KMOD_CTRL (KMOD_LCTRL|KMOD_RCTRL) 335 #define KMOD_CTRL (KMOD_LCTRL|KMOD_RCTRL)
336 #define KMOD_SHIFT (KMOD_LSHIFT|KMOD_RSHIFT) 336 #define KMOD_SHIFT (KMOD_LSHIFT|KMOD_RSHIFT)
337 #define KMOD_ALT (KMOD_LALT|KMOD_RALT) 337 #define KMOD_ALT (KMOD_LALT|KMOD_RALT)
338 #define KMOD_GUI (KMOD_LGUI|KMOD_RGUI) 338 #define KMOD_GUI (KMOD_LGUI|KMOD_RGUI)