Module fermium::events

source ·
Expand description

Module for event handling.

Structs

Constants

Functions

  • Add a function which is called when an event is added to the queue.
  • Remove an event watch function added with SDL_AddEventWatch
  • This function allows you to set the state of processing certain events.
  • Run the filter function on the current event queue, removing any events for which the filter returns 0.
  • This function clears events of a particular type from the event queue.
  • This function clears a range of event types from the event queue.
  • Return the current event filter - can be used to “chain” filters.
  • As SDL_EventState, but provides the “query” part for you.
  • Checks to see if certain event types are in the event queue.
  • Checks to see if a range of event types are in the event queue.
  • Checks the event queue for messages and optionally returns them.
  • Polls for currently pending events.
  • Pumps the event loop, gathering events from the input devices.
  • Add an event to the event queue.
  • This function allocates a set of user-defined events, and returns the beginning event number for that set of events.
  • Sets up a filter to process all events before they change internal state and are posted to the internal event queue.
  • Waits indefinitely for the next available event.
  • Waits until the specified timeout (in milliseconds) for the next available event.

Type Definitions

Unions