clear_keybuf - Man Page

Clears the keyboard buffer. Allegro game programming library.

Synopsis

#include <allegro.h>

void clear_keybuf();

Description

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

version 4.4.3 Allegro manual