chickadee » sdl2 » joystick-event-state-set!

(set! (joystick-event-state) state) → booleansetter
joystick-event-state-set! statesetter

joystick-event-state returns #t if joystick events are currently enabled, or #f if they are disabled (i.e. all future joystick-related events will be ignored). See SDL_JoystickEventState.

The setters enable (if state is #t) or disable (if state is #f) joytsick events. Warning: Calling the setters may delete all events currently in the event queue.

These procedures signal an exception of kind (exn sdl2) if an error occurs.