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.
ControllerButtonEvent
Game controller button event
Operations
GetButton #
The controller button
method : public : GetButton() ~ GameControllerButtonReturn
| Type | Description |
|---|---|
| GameControllerButton | the button, a GameControllerButton value |
GetState #
Button state
method : public : GetState() ~ IntReturn
| Type | Description |
|---|---|
| Int | 1 when pressed, 0 when released |
GetTimestamp #
Timestamp of the event
method : public : GetTimestamp() ~ IntReturn
| Type | Description |
|---|---|
| Int | event timestamp |