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
| Type | Description |
|---|
| Int | event timestamp |
GetType #
Event type
method : public : GetType() ~ Int
Return
| Type | Description |
|---|
| Int | EventType->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
| Type | Description |
|---|
| Int | device index or instance id |