JoyButtonEvent
Joysticks button event
Operations
GetButton
Index of the button that changed
method : public : GetButton() ~ IntReturn
| Type | Description |
|---|---|
| Int | button index |
GetState
State of the button
method : public : GetState() ~ KeyStateReturn
| Type | Description |
|---|---|
| KeyState | KeyState->SDL_PRESSED or KeyState->SDL_RELEASED |
GetTimestamp
Timestamp of the event
method : public : GetTimestamp() ~ IntReturn
| Type | Description |
|---|---|
| Int | event timestamp |
GetType
Event type
method : public : GetType() ~ IntReturn
| Type | Description |
|---|---|
| Int | EventType->SDL_JOYBUTTONDOWN or EventType->SDL_JOYBUTTONUP |
GetWhich
Instance ID of the joystick that reported the event
method : public : GetWhich() ~ IntReturn
| Type | Description |
|---|---|
| Int | joystick ID |