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