comparison src/events/SDL_keyboard_c.h @ 3685:64ce267332c6

Switched from SDL_WindowID and SDL_TextureID to SDL_Window* and SDL_Texture* for code simplicity and improved performance.
author Sam Lantinga <slouken@libsdl.org>
date Thu, 21 Jan 2010 06:21:52 +0000
parents 00cace2d9080
children f7b03b6838cb
comparison
equal deleted inserted replaced
3684:cc564f08884f 3685:64ce267332c6
33 { 33 {
34 /* Free the keyboard when it's time */ 34 /* Free the keyboard when it's time */
35 void (*FreeKeyboard) (SDL_Keyboard * keyboard); 35 void (*FreeKeyboard) (SDL_Keyboard * keyboard);
36 36
37 /* Data common to all keyboards */ 37 /* Data common to all keyboards */
38 SDL_WindowID focus; 38 SDL_Window *focus;
39 Uint16 modstate; 39 Uint16 modstate;
40 Uint8 keystate[SDL_NUM_SCANCODES]; 40 Uint8 keystate[SDL_NUM_SCANCODES];
41 SDLKey keymap[SDL_NUM_SCANCODES]; 41 SDLKey keymap[SDL_NUM_SCANCODES];
42 42
43 void *driverdata; 43 void *driverdata;
71 this function must stay valid forever (or at least until the call to 71 this function must stay valid forever (or at least until the call to
72 VideoQuit()). */ 72 VideoQuit()). */
73 extern void SDL_SetScancodeName(SDL_scancode scancode, const char *name); 73 extern void SDL_SetScancodeName(SDL_scancode scancode, const char *name);
74 74
75 /* Set the keyboard focus window */ 75 /* Set the keyboard focus window */
76 extern void SDL_SetKeyboardFocus(int index, SDL_WindowID windowID); 76 extern void SDL_SetKeyboardFocus(int index, SDL_Window * window);
77 77
78 /* Send a keyboard event for a keyboard at an index */ 78 /* Send a keyboard event for a keyboard at an index */
79 extern int SDL_SendKeyboardKey(int index, Uint8 state, SDL_scancode scancode); 79 extern int SDL_SendKeyboardKey(int index, Uint8 state, SDL_scancode scancode);
80 80
81 /* Send keyboard text input for a keyboard at an index */ 81 /* Send keyboard text input for a keyboard at an index */