|
arsa
2.7
|
#include "SDL_stdinc.h"#include "SDL_error.h"#include "SDL_keycode.h"#include "SDL_video.h"#include "begin_code.h"#include "close_code.h"Go to the source code of this file.
Classes | |
| struct | SDL_Keysym |
| The SDL keysym structure, used in key events. More... | |
Typedefs | |
| typedef struct SDL_Keysym | SDL_Keysym |
| The SDL keysym structure, used in key events. More... | |
Functions | |
| DECLSPEC SDL_Window *SDLCALL | SDL_GetKeyboardFocus (void) |
| Get the window which currently has keyboard focus. More... | |
| DECLSPEC const Uint8 *SDLCALL | SDL_GetKeyboardState (int *numkeys) |
| Get a snapshot of the current state of the keyboard. More... | |
| DECLSPEC SDL_Keymod SDLCALL | SDL_GetModState (void) |
| Get the current key modifier state for the keyboard. More... | |
| DECLSPEC void SDLCALL | SDL_SetModState (SDL_Keymod modstate) |
| Set the current key modifier state for the keyboard. More... | |
| DECLSPEC SDL_Keycode SDLCALL | SDL_GetKeyFromScancode (SDL_Scancode scancode) |
| Get the key code corresponding to the given scancode according to the current keyboard layout. More... | |
| DECLSPEC SDL_Scancode SDLCALL | SDL_GetScancodeFromKey (SDL_Keycode key) |
| Get the scancode corresponding to the given key code according to the current keyboard layout. More... | |
| DECLSPEC const char *SDLCALL | SDL_GetScancodeName (SDL_Scancode scancode) |
| Get a human-readable name for a scancode. More... | |
| DECLSPEC SDL_Scancode SDLCALL | SDL_GetScancodeFromName (const char *name) |
| Get a scancode from a human-readable name. More... | |
| DECLSPEC const char *SDLCALL | SDL_GetKeyName (SDL_Keycode key) |
| Get a human-readable name for a key. More... | |
| DECLSPEC SDL_Keycode SDLCALL | SDL_GetKeyFromName (const char *name) |
| Get a key code from a human-readable name. More... | |
| DECLSPEC void SDLCALL | SDL_StartTextInput (void) |
| Start accepting Unicode text input events. This function will show the on-screen keyboard if supported. More... | |
| DECLSPEC SDL_bool SDLCALL | SDL_IsTextInputActive (void) |
| Return whether or not Unicode text input events are enabled. More... | |
| DECLSPEC void SDLCALL | SDL_StopTextInput (void) |
| Stop receiving any text input events. This function will hide the on-screen keyboard if supported. More... | |
| 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. More... | |
| DECLSPEC SDL_bool SDLCALL | SDL_HasScreenKeyboardSupport (void) |
| Returns whether the platform has some screen keyboard support. More... | |
| DECLSPEC SDL_bool SDLCALL | SDL_IsScreenKeyboardShown (SDL_Window *window) |
| Returns whether the screen keyboard is shown for given window. More... | |
Include file for SDL keyboard event handling
Definition in file 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.
Get a snapshot of the current state of the keyboard.
| numkeys | if non-NULL, receives the length of the returned array. |
Example:
| DECLSPEC SDL_Keycode SDLCALL SDL_GetKeyFromName | ( | const char * | name | ) |
Get a key code from a human-readable name.
| 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 const char* SDLCALL SDL_GetKeyName | ( | SDL_Keycode | key | ) |
Get a human-readable name for a key.
| DECLSPEC SDL_Keymod SDLCALL SDL_GetModState | ( | void | ) |
Get the current key modifier state for the keyboard.
| 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.
| DECLSPEC SDL_Scancode SDLCALL SDL_GetScancodeFromName | ( | const char * | name | ) |
Get a scancode from a human-readable name.
| DECLSPEC const char* SDLCALL SDL_GetScancodeName | ( | SDL_Scancode | scancode | ) |
Get a human-readable name for a scancode.
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. |
Return whether or not Unicode text input events are enabled.
| DECLSPEC void SDLCALL SDL_SetModState | ( | SDL_Keymod | modstate | ) |
Set the current key modifier state for the keyboard.
Set the rectangle used to type Unicode text inputs. This is used as a hint for IME and on-screen keyboard placement.
Start accepting Unicode text input events. This function will show the on-screen keyboard if supported.
Stop receiving any text input events. This function will hide the on-screen keyboard if supported.
1.8.15