28 #ifndef _SDL_keyboard_h 29 #define _SDL_keyboard_h SDL_Keycode SDL_GetKeyFromName(const char *name)
Get a key code from a human-readable name.
SDL_Scancode SDL_GetScancodeFromName(const char *name)
Get a scancode from a human-readable name.
uint32_t Uint32
An unsigned 32-bit integer type.
const char * SDL_GetKeyName(SDL_Keycode key)
Get a human-readable name for a key.
void SDL_SetModState(SDL_Keymod modstate)
Set the current key modifier state for the keyboard.
The SDL keysym structure, used in key events.
GLuint const GLchar * name
Sint32 SDL_Keycode
The SDL virtual key representation.
SDL_bool SDL_IsTextInputActive(void)
Return whether or not Unicode text input events are enabled.
uint8_t Uint8
An unsigned 8-bit integer type.
SDL_Window * SDL_GetKeyboardFocus(void)
Get the window which currently has keyboard focus.
SDL_Keymod
Enumeration of valid key mods (possibly OR'd together).
void SDL_StartTextInput(void)
Start accepting Unicode text input events. This function will show the on-screen keyboard if supporte...
SDL_bool SDL_HasScreenKeyboardSupport(void)
Returns whether the platform has some screen keyboard support.
SDL_Keymod SDL_GetModState(void)
Get the current key modifier state for the keyboard.
SDL_Keycode SDL_GetKeyFromScancode(SDL_Scancode scancode)
Get the key code corresponding to the given scancode according to the current keyboard layout...
void SDL_StopTextInput(void)
Stop receiving any text input events. This function will hide the on-screen keyboard if supported...
The type used to identify a window.
uint16_t Uint16
An unsigned 16-bit integer type.
const Uint8 * SDL_GetKeyboardState(int *numkeys)
Get a snapshot of the current state of the keyboard.
void SDL_SetTextInputRect(SDL_Rect *rect)
Set the rectangle used to type Unicode text inputs. This is used as a hint for IME and on-screen keyb...
SDL_Scancode
The SDL keyboard scancode representation.
const char * SDL_GetScancodeName(SDL_Scancode scancode)
Get a human-readable name for a scancode.
SDL_bool SDL_IsScreenKeyboardShown(SDL_Window *window)
Returns whether the screen keyboard is shown for given window.
A rectangle, with the origin at the upper left.
SDL_Scancode SDL_GetScancodeFromKey(SDL_Keycode key)
Get the scancode corresponding to the given key code according to the current keyboard layout...