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.

UserEvent

Application defined event, with a type from Event->Registers

Operations

GetCode #

User defined event code

method : public : GetCode() ~ Int

Return

TypeDescription
Intevent code

GetTimestamp #

Timestamp of the event

method : public : GetTimestamp() ~ Int

Return

TypeDescription
Intevent timestamp

GetType #

Event type

method : public : GetType() ~ Int

Return

TypeDescription
Inta type from Event->Registers, at least EventType->SDL_USEREVENT

GetWindowID #

The associated window, if any

method : public : GetWindowID() ~ Int

Return

TypeDescription
Intwindow ID