Function btn
#include <macaw.h>int btn(const char *key);
Tells you whether a key is held down right now. Use it for movement and anything else that carries on while the key is held.
Parameters
keyconst char *- The key's name, like
"left","space","a"or"f1". A name it doesn't know stops the program with an error.
Returns int
1 while the key is held down, or 0. It's always 0 while your window isn't the one in front.
In The keyboard and mouse, with btnp, mouse, textinput, keysp, keyspname.