Mercurial > sdl-ios-xcode
diff src/events/SDL_keyboard_c.h @ 1724:6c63fc2bd986 SDL-1.3
Proof of concept done - Win32 GDI implementation mostly complete.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Thu, 06 Jul 2006 07:17:11 +0000 |
parents | a1ebb17f9c52 |
children |
line wrap: on
line diff
--- a/src/events/SDL_keyboard_c.h Thu Jul 06 05:53:32 2006 +0000 +++ b/src/events/SDL_keyboard_c.h Thu Jul 06 07:17:11 2006 +0000 @@ -75,9 +75,15 @@ /* Clear the state of a keyboard at an index */ extern void SDL_ResetKeyboard(int index); +/* Set the keyboard focus window */ +extern void SDL_SetKeyboardFocus(int index, SDL_WindowID windowID); + /* Send a keyboard event for a keyboard at an index */ -extern int SDL_SendKeyboardKey(int index, SDL_WindowID windowID, Uint8 state, - SDL_keysym * keysym); +extern int SDL_SendKeyboardKey(int index, Uint8 state, Uint8 scancode, + SDLKey key); + +/* Send keyboard text input for a keyboard at an index */ +extern int SDL_SendKeyboardText(int index, const char *text); /* Used by the event loop to queue pending keyboard repeat events */ extern void SDL_CheckKeyRepeat(void);