#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 | |
| int | SDL_GetNumKeyboards (void) |
| Get the number of keyboard input devices available. | |
| int | SDL_SelectKeyboard (int index) |
| Set the index of the currently selected keyboard. | |
| Uint8 * | SDL_GetKeyboardState (int *numkeys) |
| Get a snapshot of the current state of the selected keyboard. | |
| SDLMod | SDL_GetModState (void) |
| Get the current key modifier state for the selected keyboard. | |
| void | SDL_SetModState (SDLMod modstate) |
| Set the current key modifier state for the selected keyboard. | |
| SDLKey | SDL_GetKeyFromScancode (SDL_scancode scancode) |
| Get the key code corresponding to the given scancode according to the current keyboard layout. | |
| SDL_scancode | SDL_GetScancodeFromKey (SDLKey key) |
| Get the scancode corresponding to the given key code according to the current keyboard layout. | |
| const char * | SDL_GetScancodeName (SDL_scancode scancode) |
| Get a human-readable name for a scancode. | |
| const char * | SDL_GetKeyName (SDLKey key) |
| Get a human-readable name for a key. | |
| 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.
1.5.8