sdl2/generated/lib_sdl_events library

Functions

sdlAddEventWatch(Pointer<NativeFunction<SdlEventFilter>> filter, Pointer<NativeType> userdata) → void
Add a callback to be triggered when an event is added to the event queue.
sdlDelEventWatch(Pointer<NativeFunction<SdlEventFilter>> filter, Pointer<NativeType> userdata) → void
Remove an event watch callback added with SDL_AddEventWatch().
sdlEventState(int type, int state) int
Set 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 0.
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.
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) int
Poll for currently pending events.
sdlPumpEvents() → void
Pump the event loop, gathering events from the input devices.
sdlPushEvent(Pointer<SdlEvent> event) int
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.
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) int
Wait indefinitely for the next available event.
sdlWaitEventTimeout(Pointer<SdlEvent> event, int timeout) int
Wait until the specified timeout (in milliseconds) for the next available event.