clear_keybuf(3alleg4) | Allegro manual | clear_keybuf(3alleg4) |
clear_keybuf - Clears the keyboard buffer. Allegro game programming library.
#include <allegro.h>
void clear_keybuf();
Empties the keyboard buffer. Usually you want to use this in your program before reading keys to avoid previously buffered keys to be returned by calls to readkey() or ureadkey().
install_keyboard(3alleg4), keypressed(3alleg4), readkey(3alleg4), ureadkey(3alleg4)
version 4.4.3 | Allegro |