JoyHatEvent
Joysticks hat event
Operations
GetHat
Index of the hat that changed
method : public : GetHat() ~ Int
Return
Type | Description |
---|---|
Int | hat 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_JOYHATMOTION |
GetValue
New position of the hat
method : public : GetValue() ~ JoystickHatValue
Return
Type | Description |
---|---|
JoystickHatValue | hat value |
GetWhich
Instance ID of the joystick that reported the event
method : public : GetWhich() ~ Int
Return
Type | Description |
---|---|
Int | joystick ID |