v2026.5.3
All Bundles
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.

JoyAxisEvent

Joysticks axis event

Operations

GetAxis #

Index of the axis that changed

method : public : GetAxis() ~ Int

Return

TypeDescription
Intaxis 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_JOYAXISMOTION

GetValue #

Current position of the axis (range: -32768 to 32767)

method : public : GetValue() ~ Int

Return

TypeDescription
Intaxis position

GetWhich #

Instance ID of the joystick that reported the event

method : public : GetWhich() ~ Int

Return

TypeDescription
Intjoystick ID