sdl3/generated/lib_sdl_keyboard library

Functions

sdlClearComposition(Pointer<SdlWindow> window) bool
Dismiss the composition window/IME without disabling the subsystem.
sdlGetKeyboardFocus() Pointer<SdlWindow>
Query the window which currently has keyboard focus.
sdlGetKeyboardNameForId(int instanceId) String?
Get the name of a keyboard.
sdlGetKeyboards(Pointer<Int32> count) Pointer<Uint32>
Get a list of currently connected keyboards.
sdlGetKeyboardState(Pointer<Int32> numkeys) Pointer<Uint8>
Get a snapshot of the current state of the keyboard.
sdlGetKeyFromName(String? name) int
Get a key code from a human-readable name.
sdlGetKeyFromScancode(int scancode, int modstate, bool keyEvent) int
Get the key code corresponding to the given scancode according to the current keyboard layout.
sdlGetKeyName(int key) String?
Get a human-readable name for a key.
sdlGetModState() int
Get the current key modifier state for the keyboard.
sdlGetScancodeFromKey(int key, Pointer<Uint16> modstate) int
Get the scancode corresponding to the given key code according to the current keyboard layout.
sdlGetScancodeFromName(String? name) int
Get a scancode from a human-readable name.
sdlGetScancodeName(int scancode) String?
Get a human-readable name for a scancode.
sdlGetTextInputArea(Pointer<SdlWindow> window, Pointer<SdlRect> rect, Pointer<Int32> cursor) bool
Get the area used to type Unicode text input.
sdlHasKeyboard() bool
Return whether a keyboard is currently connected.
sdlHasScreenKeyboardSupport() bool
Check whether the platform has screen keyboard support.
sdlResetKeyboard() → void
Clear the state of the keyboard.
sdlScreenKeyboardShown(Pointer<SdlWindow> window) bool
Check whether the screen keyboard is shown for given window.
sdlSetModState(int modstate) → void
Set the current key modifier state for the keyboard.
sdlSetScancodeName(int scancode, String? name) bool
Set a human-readable name for a scancode.
sdlSetTextInputArea(Pointer<SdlWindow> window, Pointer<SdlRect> rect, int cursor) bool
Set the area used to type Unicode text input.
sdlStartTextInput(Pointer<SdlWindow> window) bool
Start accepting Unicode text input events in a window.
sdlStartTextInputWithProperties(Pointer<SdlWindow> window, int props) bool
Start accepting Unicode text input events in a window, with properties describing the input.
sdlStopTextInput(Pointer<SdlWindow> window) bool
Stop receiving any text input events in a window.
sdlTextInputActive(Pointer<SdlWindow> window) bool
Check whether or not Unicode text input events are enabled for a window.