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