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