clear_keybuf

Section: Allegro manual (3)
Updated: version 4.2.2
Index Return to Main Contents
 

NAME

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