chickadee » sdl2 » controller-axis-event-axis-set!

controller-axis-event-axis eventprocedure
controller-axis-event-axis-raw eventprocedure
set! (controller-axis-event-axis event) valsetter
controller-axis-event-axis-set! event valsetter

Get or set the event's "axis" field, as a symbol indicating the axis that the event is related to.

  • controller-axis-event-axis returns a game controller axis symbol.
  • controller-axis-event-axis-raw returns an integer.
  • The setters accept either a symbol or an integer.

Before sdl2 egg 0.4.0, controller-axis-event-axis returned an integer.