JoyAxisEvent
Joysticks axis event
Operations
GetAxis
Index of the axis that changed
method : public : GetAxis() ~ IntReturn
| Type | Description |
|---|---|
| Int | axis index |
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_JOYAXISMOTION |
GetValue
Current position of the axis (range: -32768 to 32767)
method : public : GetValue() ~ IntReturn
| Type | Description |
|---|---|
| Int | axis position |
GetWhich
Instance ID of the joystick that reported the event
method : public : GetWhich() ~ IntReturn
| Type | Description |
|---|---|
| Int | joystick ID |