sdl3/generated/lib_sdl_events
library
Functions
-
sdlAddEventWatch(Pointer<NativeFunction<SdlEventFilter>> filter, Pointer<NativeType> userdata)
→ bool
-
Add a callback to be triggered when an event is added to the event queue.
-
sdlEventEnabled(int type)
→ bool
-
Query the state of processing events by type.
-
sdlFilterEvents(Pointer<NativeFunction<SdlEventFilter>> filter, Pointer<NativeType> userdata)
→ void
-
Run a specific filter function on the current event queue, removing any
events for which the filter returns false.
-
sdlFlushEvent(int type)
→ void
-
Clear events of a specific type from the event queue.
-
sdlFlushEvents(int minType, int maxType)
→ void
-
Clear events of a range of types from the event queue.
-
sdlGetEventFilter(Pointer<Pointer<NativeFunction<SdlEventFilter>>> filter, Pointer<Pointer<NativeType>> userdata)
→ bool
-
Query the current event filter.
-
sdlGetWindowFromEvent(Pointer<SdlEvent> event)
→ Pointer<SdlWindow>
-
Get window associated with an event.
-
sdlHasEvent(int type)
→ bool
-
Check for the existence of a certain event type in the event queue.
-
sdlHasEvents(int minType, int maxType)
→ bool
-
Check for the existence of certain event types in the event queue.
-
sdlPeepEvents(Pointer<SdlEvent> events, int numevents, int action, int minType, int maxType)
→ int
-
Check the event queue for messages and optionally return them.
-
sdlPollEvent(Pointer<SdlEvent> event)
→ bool
-
Poll for currently pending events.
-
sdlPumpEvents()
→ void
-
Pump the event loop, gathering events from the input devices.
-
sdlPushEvent(Pointer<SdlEvent> event)
→ bool
-
Add an event to the event queue.
-
sdlRegisterEvents(int numevents)
→ int
-
Allocate a set of user-defined events, and return the beginning event
number for that set of events.
-
sdlRemoveEventWatch(Pointer<NativeFunction<SdlEventFilter>> filter, Pointer<NativeType> userdata)
→ void
-
Remove an event watch callback added with SDL_AddEventWatch().
-
sdlSetEventEnabled(int type, bool enabled)
→ void
-
Set the state of processing events by type.
-
sdlSetEventFilter(Pointer<NativeFunction<SdlEventFilter>> filter, Pointer<NativeType> userdata)
→ void
-
Set up a filter to process all events before they change internal state and
are posted to the internal event queue.
-
sdlWaitEvent(Pointer<SdlEvent> event)
→ bool
-
Wait indefinitely for the next available event.
-
sdlWaitEventTimeout(Pointer<SdlEvent> event, int timeoutMs)
→ bool
-
Wait until the specified timeout (in milliseconds) for the next available
event.