Keyboard
Handles keyboard operations
Operations
GetModState
Get the current key modifier state for the keyboard
function : GetModState() ~ KeymodReturn
| Type | Description |
|---|---|
| Keymod | OR'd combination of the modifier keys for the keyboard |
GetState
Get a snapshot of the current state of the keyboard
function : GetState() ~ Byte[]Return
| 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 |
SetTextInputRect
Set the rectangle used to type Unicode text inputs
function : SetTextInputRect(rect:Rect) ~ NilParameters
| Name | Type | Description |
|---|---|---|
| rect | Rect | Rect structure representing the rectangle to receive text |