Handles keyboard operations
OperationsGet the current key modifier state for the keyboard
function : GetModState() ~ Keymod
Type | Description |
---|---|
Keymod | OR'd combination of the modifier keys for the keyboard |
Get a snapshot of the current state of the keyboard
function : GetState() ~ Byte[]
Type | Description |
---|---|
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 |
Set the rectangle used to type Unicode text inputs
function : SetTextInputRect(rect:Rect) ~ Nil
Name | Type | Description |
---|---|---|
rect | Rect | Rect structure representing the rectangle to receive text |
Start accepting Unicode text input events
function : StartTextInput() ~ Nil
Stop accepting Unicode text input events
function : StopTextInput() ~ Nil