Macaw OS C reference

Module The keyboard and mouse

#include <macaw.h>

Functions

btn
Tells you whether a key is held down right now.
btnp
Tells you whether a key was pressed this frame.
mouse
Finds out where the pointer is and which mouse buttons are held down.
textinput
Gives you the characters typed this frame, for a text box or a name.
keysp
Makes a list of every key that went down or repeated this frame.
keyspname
Gives the name of one key in the list keysp made, so you can see what was pressed without testing every key.