World of Might and Magic
0.2.0
Open reimplementation of Might and Magic 6 7 8 game engine
|
Классы | |
struct | SDL_Keysym |
The SDL keysym structure, used in key events. Подробнее... | |
Определения типов | |
typedef struct SDL_Keysym | SDL_Keysym |
The SDL keysym structure, used in key events. Подробнее... | |
Функции | |
DECLSPEC SDL_Window *SDLCALL | SDL_GetKeyboardFocus (void) |
Get the window which currently has keyboard focus. Подробнее... | |
const DECLSPEC Uint8 *SDLCALL | SDL_GetKeyboardState (int *numkeys) |
Get a snapshot of the current state of the keyboard. Подробнее... | |
DECLSPEC SDL_Keymod SDLCALL | SDL_GetModState (void) |
Get the current key modifier state for the keyboard. Подробнее... | |
DECLSPEC void SDLCALL | SDL_SetModState (SDL_Keymod modstate) |
Set the current key modifier state for the keyboard. Подробнее... | |
DECLSPEC SDL_Keycode 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 (SDL_Keycode key) |
Get the scancode corresponding to the given key code according to the current keyboard layout. Подробнее... | |
const DECLSPEC char *SDLCALL | SDL_GetScancodeName (SDL_Scancode scancode) |
Get a human-readable name for a scancode. Подробнее... | |
DECLSPEC SDL_Scancode SDLCALL | SDL_GetScancodeFromName (const char *name) |
Get a scancode from a human-readable name. Подробнее... | |
const DECLSPEC char *SDLCALL | SDL_GetKeyName (SDL_Keycode key) |
Get a human-readable name for a key. Подробнее... | |
DECLSPEC SDL_Keycode SDLCALL | SDL_GetKeyFromName (const char *name) |
Get a key code from a human-readable name. Подробнее... | |
DECLSPEC void SDLCALL | SDL_StartTextInput (void) |
Start accepting Unicode text input events. This function will show the on-screen keyboard if supported. Подробнее... | |
DECLSPEC SDL_bool SDLCALL | SDL_IsTextInputActive (void) |
Return whether or not Unicode text input events are enabled. Подробнее... | |
DECLSPEC void SDLCALL | SDL_StopTextInput (void) |
Stop receiving any text input events. This function will hide the on-screen keyboard if supported. Подробнее... | |
DECLSPEC void SDLCALL | 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 keyboard placement. Подробнее... | |
DECLSPEC SDL_bool SDLCALL | SDL_HasScreenKeyboardSupport (void) |
Returns whether the platform has some screen keyboard support. Подробнее... | |
DECLSPEC SDL_bool SDLCALL | SDL_IsScreenKeyboardShown (SDL_Window *window) |
Returns whether the screen keyboard is shown for given window. Подробнее... | |
Include file for SDL keyboard event handling
См. определение в файле SDL_keyboard.h
typedef struct SDL_Keysym SDL_Keysym |
The SDL keysym structure, used in key events.
DECLSPEC SDL_Window* SDLCALL SDL_GetKeyboardFocus | ( | void | ) |
Get the window which currently has keyboard focus.
const DECLSPEC Uint8* SDLCALL SDL_GetKeyboardState | ( | int * | numkeys | ) |
Get a snapshot of the current state of the keyboard.
numkeys | if non-NULL, receives the length of the returned array. |
Example:
Используется в GetAsyncKeyState().
DECLSPEC SDL_Keymod SDLCALL SDL_GetModState | ( | void | ) |
Get the current key modifier state for the keyboard.
DECLSPEC void SDLCALL SDL_SetModState | ( | SDL_Keymod | modstate | ) |
Set the current key modifier state for the keyboard.
DECLSPEC SDL_Keycode SDLCALL SDL_GetKeyFromScancode | ( | SDL_Scancode | scancode | ) |
Get the key code corresponding to the given scancode according to the current keyboard layout.
See SDL_Keycode for details.
DECLSPEC SDL_Scancode SDLCALL SDL_GetScancodeFromKey | ( | SDL_Keycode | key | ) |
Get the scancode corresponding to the given key code according to the current keyboard layout.
See SDL_Scancode for details.
const DECLSPEC char* SDLCALL SDL_GetScancodeName | ( | SDL_Scancode | scancode | ) |
Get a human-readable name for a scancode.
DECLSPEC SDL_Scancode SDLCALL SDL_GetScancodeFromName | ( | const char * | name | ) |
Get a scancode from a human-readable name.
const DECLSPEC char* SDLCALL SDL_GetKeyName | ( | SDL_Keycode | key | ) |
Get a human-readable name for a key.
DECLSPEC SDL_Keycode SDLCALL SDL_GetKeyFromName | ( | const char * | name | ) |
Get a key code from a human-readable name.
Start accepting Unicode text input events. This function will show the on-screen keyboard if supported.
Return whether or not Unicode text input events are enabled.
Stop receiving any text input events. This function will hide the on-screen keyboard if supported.
Set the rectangle used to type Unicode text inputs. This is used as a hint for IME and on-screen keyboard placement.
Returns whether the platform has some screen keyboard support.
DECLSPEC SDL_bool SDLCALL SDL_IsScreenKeyboardShown | ( | SDL_Window * | window | ) |
Returns whether the screen keyboard is shown for given window.
window | The window for which screen keyboard should be queried. |