v2025.6.2
All Bundles

JoyHatEvent

Joysticks hat event

Operations

GetHat

Index of the hat that changed

method : public : GetHat() ~ Int

Return

TypeDescription
Inthat index

GetTimestamp

Timestamp of the event

method : public : GetTimestamp() ~ Int

Return

TypeDescription
Intevent timestamp

GetType

Event type

method : public : GetType() ~ Int

Return

TypeDescription
IntEventType->SDL_JOYHATMOTION

GetValue

New position of the hat

method : public : GetValue() ~ JoystickHatValue

Return

TypeDescription
JoystickHatValuehat value

GetWhich

Instance ID of the joystick that reported the event

method : public : GetWhich() ~ Int

Return

TypeDescription
Intjoystick ID