clear_keybuf man page

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().

See Also

install_keyboard(3), keypressed(3), readkey(3), ureadkey(3)

Referenced By

ex12bit(3), ex3buf(3), exalpha(3), exblend(3), excolmap(3), exdbuf(3), exflame(3), exflip(3), exjoy(3), exkeys(3), exlights(3), exmouse(3), exquat(3), exscroll(3), exspline(3), exsprite(3), extrans(3), keypressed(3), readkey(3), ureadkey(3).

Explore man page connections for clear_keybuf(3).

Allegro version 4.4.2 Allegro manual