A comprehensive list of all callbacks which can be passed to
Called every time a frame is rendered.
delta is the elapsed time, in seconds, since
:update was last called.
time is the elapsed time, in seconds, since the application started running.
Called every time a frame is rendered. Return values from
:display are ignored.
Called once, when application begins.
Called once, when application ends.
Called when application begins, and every subsequent time the window is resized.
Called when mouse moves with a button pressed.
[dx dy] contains relative motion since last time
:mouse-drag was called, and
[x y] contains absolute position of the mouse.
button will be equal to one of
:mouse-5. If the mouse is moving when two or more buttons are pressed,
:mouse-drag will be called once for each button.
:mouse-drag, but when no button is pressed.
Called whenever a button is pressed.
Called whenever a button is released.
Called whenever a mouse is clicked (pressed and released). Gives
[x y] of where mouse was originally pressed.
Called whenever a key is pressed. If the key is something that would normally show up in a text entry field,
key is a case-sensitive string. Examples include “a”, “&”, and " ". If it is not,
key is a keyword. Examples include
Called whenever a key is released.
Called whenever a key is pressed and released. This is the only key event which will expose auto-repeated keys.