chickadee » sdl2 » make-keysym

make-keysym #!optional scancode sym modprocedure
make-keysym* #!optional scancode sym modprocedure

Allocate and initialize a new sdl2:keysym.

scancode defaults to 'unknown. It must be a keyboard scancode symbol or equivalent integer.

sym defaults to 'unknown. It must be a keyboard keycode symbol or equivalent integer.

mod defaults to '(). It must be a list of zero or more keyboard modifier symbols or an equivalent integer bitfield.

  • make-keysym returns a managed sdl2:keysym.
  • make-keysym* returns an unmanaged sdl2:keysym, which must be freed with free-keysym! when you are done with it.