chickadee » sdl2 » mouse-motion-event-state-set!

mouse-motion-event-state eventprocedure
mouse-motion-event-state-raw eventprocedure
set! (mouse-motion-event-state event) valsetter
mouse-motion-event-state-set! event valsetter

Get or set the event's "state" field, indicating the mouse buttons that were being pressed at the time this event occurred.

  • mouse-motion-event-state returns a list of zero or more mouse button mask symbols.
  • mouse-motion-event-state-raw returns an integer.
  • The setters accept either a list of zero or more symbols, or an integer.