chickadee » sdl2 » keyboard-event-sym-set!

keyboard-event-sym eventprocedure
keyboard-event-sym-raw eventprocedure
set! (keyboard-event-sym event) valsetter
keyboard-event-sym-set! event valsetter

Get or set the "sym" field of the event's "keysym" field, indicating the logical key that was pressed or released. Setting this will modify the event.

  • keyboard-event-sym returns a keyboard keycode symbol
  • keyboard-event-sym-raw returns an integer.
  • The setters accept either a symbol or an integer.