Mercurial > sdl-ios-xcode
comparison include/SDL_keysym.h @ 5224:c1a92e61907d
Renamed SDLKey and SDLMod for consistency
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 07 Feb 2011 09:42:08 -0800 |
parents | f7b03b6838cb |
children | 1fbe1c202501 |
comparison
equal
deleted
inserted
replaced
5223:572a73d71b5f | 5224:c1a92e61907d |
---|---|
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 SDLKey; | 43 typedef Sint32 SDL_Key; |
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 } SDLMod; | 333 } SDL_Mod; |
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) |