KeyboardEvent
Keyboard event
Operations
GetKeysym
The Keysym instance representing the key that was pressed or released
method : public : GetKeysym() ~ KeysymReturn
| Type | Description |
|---|---|
| Keysym | key that was pressed or released |
GetRepeat
Get key repeat
method : public : GetRepeat() ~ IntReturn
| Type | Description |
|---|---|
| Int | non-zero if this is a key repeat |
GetState
Get the state of the key
method : public : GetState() ~ KeyStateReturn
| Type | Description |
|---|---|
| KeyState | KeyState->SDL_PRESSED or KeyState->SDL_RELEASED |
GetTimestamp
Get the event type
method : public : GetTimestamp() ~ IntReturn
| Type | Description |
|---|---|
| Int | EventType->SDL_KEYDOWN or EventType->SDL_KEYUP |
GetType
Get the event type
method : public : GetType() ~ IntReturn
| Type | Description |
|---|---|
| Int | EventType->SDL_KEYDOWN or EventType->SDL_KEYUP |
GetWindowID
Get the timestamp of the event
method : public : GetWindowID() ~ IntReturn
| Type | Description |
|---|---|
| Int | timestamp of the event |