Bundle SDL2 multimedia library for 2D graphics, input handling, audio playback, and window management. Core types: Window, Renderer, Texture, Surface, Event, and Mixer. Compile with -lib sdl2.
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 |