Function textinput
#include <macaw.h>int textinput(char *buf, int size);
Gives you the characters typed this frame, for a text box or a name. Use btn and btnp for game controls instead.
Parameters
bufchar *- Where the typed text goes.
sizeint- How many bytes
bufholds. Text that doesn't fit is cut short.
Returns int
How many bytes were typed, even if buf was too small for them all. It's 0 in most frames.
In The keyboard and mouse, with btn, btnp, mouse, keysp, keyspname.