v2026.11.2
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.

ControllerAxisEvent

Game controller axis motion event

Operations

GetAxis #

The controller axis that moved

method : public : GetAxis() ~ GameControllerAxis

Return

TypeDescription
GameControllerAxisthe axis, a GameControllerAxis value

GetTimestamp #

Timestamp of the event

method : public : GetTimestamp() ~ Int

Return

TypeDescription
Intevent timestamp

GetType #

Event type

method : public : GetType() ~ Int

Return

TypeDescription
IntEventType->SDL_CONTROLLERAXISMOTION

GetValue #

The axis value

method : public : GetValue() ~ Int

Return

TypeDescription
Intvalue from -32768 to 32767

GetWhich #

The joystick instance id of the controller

method : public : GetWhich() ~ Int

Return

TypeDescription
Intinstance id