Module sdl2::event[src]
Event Handling
Enums
Event | Different event types. |
EventType | Types of events that can be delivered. |
WindowEventId | An enum of window events. |
Functions
add_event_watch | Add a callback to be triggered when an event is added to the event queue. |
delete_event_watch | Remove an event watch callback added. |
filter_events | Run a specific filter function on the current event queue, removing any events for which the filter returns 0. |
flush_event | Clear events from the event queue. |
flush_events | Clear events from the event queue of a range of event types. |
get_event_state | Get the state of processing events. |
has_event | Check for the existence of certain event types in the event queue. |
has_events | Check for the existence of a range of event types in the event queue. |
poll_event | Poll for currently pending events. |
pump_events | Pump the event loop, gathering events from the input devices. |
push_event | add an event to the event queue |
register_events | allocate a set of user-defined events, and return the beginning event number for that set of events |
set_event_filter | Set up a filter to process all events before they change internal state and are posted to the internal event queue. |
set_event_state | Set the state of processing events. |
wait_event | Wait indefinitely for the next available event. |
wait_event_timeout | Wait until the specified timeout (in milliseconds) for the next available event. |