on_anykey
The function is executed when any key of the keyboard is pressed.
The scancode of the key is passed as parameter to the function.Example:
function quit(scancode) { sys_exit("Bye!"); }
void main() {
...
on_anykey = quit; // exit with any key
...
}
See also:
on_click, on_mouse_left, on_mouse_stop, on_close, on_joy, on_f1
► latest
version online