chickadee » sdl2 » event-state

event-state typeprocedure
set! (event-state type) statesetter
event-state-set! type statesetter

Get or set the state of the given event type. #t means the event type is enabled, so events of that type may appear on the event queue. #f means the event type is disabled, so events of that type will be automatically discarded. It is beneficial to your program's performance to disable event types that your program does not need.

type must be an event type symbol or corresponding integer.

If you set an event type's state to #f, any events of that type already on the event queue will be immediately discarded. The setters return the previous state of the given event type.

See SDL_EventState.