.\" Generated by the Allegro makedoc utility .TH keypressed 3alleg4 "version 4.4.3" "Allegro" "Allegro manual" .SH NAME keypressed \- Tells if there are keypresses waiting in the input buffer. Allegro game programming library.\& .SH SYNOPSIS .B #include .sp .B int keypressed(); .SH DESCRIPTION Returns TRUE if there are keypresses waiting in the input buffer. You can use this to see if the next call to readkey() is going to block or to simply wait for the user to press a key while you still update the screen possibly drawing some animation. Example: .nf while (!keypressed()) { /* Show cool animated logo. */ } /* So he skipped our title screen. */ .fi .SH SEE ALSO .BR install_keyboard (3alleg4), .BR readkey (3alleg4), .BR ureadkey (3alleg4), .BR clear_keybuf (3alleg4), .BR simulate_keypress (3alleg4), .BR simulate_ukeypress (3alleg4)