Home

Keyboard

Handles keyboard operations

Operations

GetModState

Get the current key modifier state for the keyboard

function : public : GetModState() ~ Keymod
Return
TypeDescription
KeymodOR'd combination of the modifier keys for the keyboard

GetState

Get a snapshot of the current state of the keyboard

function : public : GetState() ~ Byte[]
Return
TypeDescription
Byte[]pointer to an array of key states. A value of 1 means that the key is pressed and a value of 0 means that it is not. Indexes into this array are obtained by using SDL_Scancode values

SetTextInputRect

Set the rectangle used to type Unicode text inputs

function : public : SetTextInputRect(rect:Rect) ~ Nil
Parameters
NameTypeDescription
rectRectRect structure representing the rectangle to receive text

StartTextInput

Start accepting Unicode text input events

function : public : StartTextInput() ~ Nil

StopTextInput

Stop accepting Unicode text input events

function : public : StopTextInput() ~ Nil