#include "SDL_stdinc.h"
#include "SDL_error.h"
#include "SDL_keysym.h"
#include "begin_code.h"
#include "close_code.h"
Go to the source code of this file.
Data Structures | |
struct | SDL_keysym |
The SDL keysym structure, used in key events. More... | |
Functions | |
DECLSPEC int SDLCALL | SDL_GetNumKeyboards (void) |
Get the number of keyboard input devices available. | |
DECLSPEC int SDLCALL | SDL_SelectKeyboard (int index) |
Set the index of the currently selected keyboard. | |
DECLSPEC Uint8 *SDLCALL | SDL_GetKeyboardState (int *numkeys) |
Get a snapshot of the current state of the selected keyboard. | |
DECLSPEC SDLMod SDLCALL | SDL_GetModState (void) |
Get the current key modifier state for the selected keyboard. | |
DECLSPEC void SDLCALL | SDL_SetModState (SDLMod modstate) |
Set the current key modifier state for the selected keyboard. | |
DECLSPEC SDLKey SDLCALL | SDL_GetKeyFromScancode (SDL_scancode scancode) |
Get the key code corresponding to the given scancode according to the current keyboard layout. | |
DECLSPEC SDL_scancode SDLCALL | SDL_GetScancodeFromKey (SDLKey key) |
Get the scancode corresponding to the given key code according to the current keyboard layout. | |
DECLSPEC const char *SDLCALL | SDL_GetScancodeName (SDL_scancode scancode) |
Get a human-readable name for a scancode. | |
DECLSPEC const char *SDLCALL | SDL_GetKeyName (SDLKey key) |
Get a human-readable name for a key. | |
DECLSPEC void SDLCALL | SDL_StartTextInput (void) |
Start accepting Unicode text input events. | |
DECLSPEC void SDLCALL | SDL_StopTextInput (void) |
Stop receiving any text input events. | |
DECLSPEC void SDLCALL | SDL_SetTextInputRect (SDL_Rect *rect) |
Set the rectangle used to type Unicode text inputs. |
Uint8 * SDL_GetKeyboardState | ( | int * | numkeys | ) |
Get a snapshot of the current state of the selected keyboard.
numkeys | if non-NULL, receives the length of the returned array. |
SDLKey SDL_GetKeyFromScancode | ( | SDL_scancode | scancode | ) |
Get the key code corresponding to the given scancode according to the current keyboard layout.
See SDLKey for details.
const char * SDL_GetKeyName | ( | SDLKey | key | ) |
Get a human-readable name for a key.
int SDL_GetNumKeyboards | ( | void | ) |
SDL_scancode SDL_GetScancodeFromKey | ( | SDLKey | key | ) |
Get the scancode corresponding to the given key code according to the current keyboard layout.
See SDL_scancode for details.
const char * SDL_GetScancodeName | ( | SDL_scancode | scancode | ) |
Get a human-readable name for a scancode.
int SDL_SelectKeyboard | ( | int | index | ) |
Set the index of the currently selected keyboard.
void SDL_SetModState | ( | SDLMod | modstate | ) |
Set the current key modifier state for the selected keyboard.
void SDL_SetTextInputRect | ( | SDL_Rect * | rect | ) |
void SDL_StartTextInput | ( | void | ) |
void SDL_StopTextInput | ( | void | ) |