chickadee » sdl2 » mouse-button-event-button-set!

mouse-button-event-button eventprocedure
mouse-button-event-button-raw eventprocedure
set! (mouse-button-event-button event) valsetter
mouse-button-event-button-set! event valsetter

Get or set the event's "button" field, indicating the button that the event is related to.

  • mouse-button-event-button returns a mouse button symbol:
    • 'left
    • 'middle
    • 'right
    • 'x1
    • 'x2
  • mouse-button-event-button-raw returns an integer.
  • The setters accept either a symbol or an integer.