JoyAxisEvent
Joysticks axis event
Operations
GetAxis
Index of the axis that changed
method : public : GetAxis() ~ Int
Return
Type | Description |
---|---|
Int | axis index |
GetTimestamp
Timestamp of the event
method : public : GetTimestamp() ~ Int
Return
Type | Description |
---|---|
Int | event timestamp |
GetType
Event type
method : public : GetType() ~ Int
Return
Type | Description |
---|---|
Int | EventType->SDL_JOYAXISMOTION |
GetValue
Current position of the axis (range: -32768 to 32767)
method : public : GetValue() ~ Int
Return
Type | Description |
---|---|
Int | axis position |
GetWhich
Instance ID of the joystick that reported the event
method : public : GetWhich() ~ Int
Return
Type | Description |
---|---|
Int | joystick ID |