dsdl2.keyboard

Members

Enums

Keycode
enum Keycode

D enum that wraps SDL_Keycode defining virtual keys

Scancode
enum Scancode

D enum that wraps SDL_Scancode defining keyboard scancodes

Functions

clearComposition
void clearComposition()

Wraps SDL_ClearComposition (from SDL 2.0.22) which clears any composition in the text input

getKeyboardFocusedWindow
Window getKeyboardFocusedWindow()

Wraps SDL_GetKeyboardFocus which gets the keyboard-focused window

getKeyboardState
const(bool[]) getKeyboardState()

Wraps SDL_GetKeyboardState which gets the current key states of the keyboard

getModState
Keymod getModState()

Wraps SDL_GetModState which gets the current modifier key states

hasScreenKeyboardSupport
bool hasScreenKeyboardSupport()

Wraps SDL_HasScreenKeyboardSupport which checks whether screen keyboard is supported

isTextInputActive
bool isTextInputActive()

Wraps SDL_IsTextInputActive which checks whether text input is active

isTextInputShown
bool isTextInputShown()

Wraps SDL_IsTextInputShown (from SDL 2.0.22) which checks whether the text input IME is shown

keycodeToScancode
Scancode keycodeToScancode(Keycode keycode)

Wraps SDL_GetScancodeFromKey which gets the dsdl2.Scancode from a dsdl2.Keycode

resetKeyboard
void resetKeyboard()

Wraps SDL_ResetKeyboard (from SDL 2.24) which resets the entire keyboard state

scancodeToKeycode
Keycode scancodeToKeycode(Scancode scancode)

Wraps SDL_GetKeyFromScancode which gets the dsdl2.Keycode from a dsdl2.Scancode

setTextInputRect
void setTextInputRect(Rect rect)

Wraps SDL_SetTextInputRect which sets the text input rectangle

startTextInput
void startTextInput()

Wraps SDL_StartTextInput which starts text input, invoking the IME if available

stopTextInput
void stopTextInput()

Wraps SDL_StopTextInput which stops text input, closing the IME if invoked prior

Structs

Keymod
struct Keymod

D struct that wraps SDL_Keymod containing modifier key states

Meta

Authors

Avaxar <avaxar@nekkl.org>