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.

ControllerDeviceEvent

Game controller added, removed or remapped

Operations

GetTimestamp #

Timestamp of the event

method : public : GetTimestamp() ~ Int

Return

TypeDescription
Intevent timestamp

GetType #

Event type

method : public : GetType() ~ Int

Return

TypeDescription
IntEventType->SDL_CONTROLLERDEVICEADDED, SDL_CONTROLLERDEVICEREMOVED or SDL_CONTROLLERDEVICEREMAPPED

GetWhich #

The device: a joystick device index (pass it to GameController->New) for an added controller, the joystick instance id for a removed or remapped one

method : public : GetWhich() ~ Int

Return

TypeDescription
Intdevice index or instance id