key_pressed (var number);
Checks whether a certain the
key or button with the scancode given by number (see
number - scancode of the key to check,
8.30 or -1 for resetting all keys to the nonpressed state.
0 when not pressed, otherwise nonzero.
- Resetting the keys can be useful when the release of keys is not detected by the operating system, for instance after hibernating or waking up from standby mode.
// wait until [f1] is pressed
key_for_str, str_for_key, key_set, key_lastpressed, inkey, key mapping,