.\" Generated by the Allegro makedoc utility .TH clear_keybuf 3alleg4 "version 4.4.3" "Allegro" "Allegro manual" .SH NAME clear_keybuf \- Clears the keyboard buffer. Allegro game programming library.\& .SH SYNOPSIS .B #include .sp .B void clear_keybuf(); .SH 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(). .SH SEE ALSO .BR install_keyboard (3alleg4), .BR keypressed (3alleg4), .BR readkey (3alleg4), .BR ureadkey (3alleg4)