123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217 |
- #ifndef _SDL_keyboard_h
- #define _SDL_keyboard_h
- #include "SDL_stdinc.h"
- #include "SDL_error.h"
- #include "SDL_keycode.h"
- #include "SDL_video.h"
- #include "begin_code.h"
- #ifdef __cplusplus
- extern "C" {
- #endif
- typedef struct SDL_Keysym
- {
- SDL_Scancode scancode;
- SDL_Keycode sym;
- Uint16 mod;
- Uint32 unused;
- } SDL_Keysym;
- extern DECLSPEC SDL_Window * SDLCALL SDL_GetKeyboardFocus(void);
- extern DECLSPEC const Uint8 *SDLCALL SDL_GetKeyboardState(int *numkeys);
- extern DECLSPEC SDL_Keymod SDLCALL SDL_GetModState(void);
- extern DECLSPEC void SDLCALL SDL_SetModState(SDL_Keymod modstate);
- extern DECLSPEC SDL_Keycode SDLCALL SDL_GetKeyFromScancode(SDL_Scancode scancode);
- extern DECLSPEC SDL_Scancode SDLCALL SDL_GetScancodeFromKey(SDL_Keycode key);
- extern DECLSPEC const char *SDLCALL SDL_GetScancodeName(SDL_Scancode scancode);
- extern DECLSPEC SDL_Scancode SDLCALL SDL_GetScancodeFromName(const char *name);
- extern DECLSPEC const char *SDLCALL SDL_GetKeyName(SDL_Keycode key);
- extern DECLSPEC SDL_Keycode SDLCALL SDL_GetKeyFromName(const char *name);
- extern DECLSPEC void SDLCALL SDL_StartTextInput(void);
- extern DECLSPEC SDL_bool SDLCALL SDL_IsTextInputActive(void);
- extern DECLSPEC void SDLCALL SDL_StopTextInput(void);
- extern DECLSPEC void SDLCALL SDL_SetTextInputRect(SDL_Rect *rect);
- extern DECLSPEC SDL_bool SDLCALL SDL_HasScreenKeyboardSupport(void);
- extern DECLSPEC SDL_bool SDLCALL SDL_IsScreenKeyboardShown(SDL_Window *window);
- #ifdef __cplusplus
- }
- #endif
- #include "close_code.h"
- #endif
|