Homepage > Man Pages > Category > Subroutines
Homepage > Man Pages > Name > K

keypressed

man page of keypressed

keypressed: Tells if there are keypresses waiting in the input buffer. Allegro game programming library.

NAME

keypressed - Tells if there are keypresses waiting in the input buffer. Allegro game programming library.

SYNOPSIS

#include <allegro.h> int keypressed();
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: while (!keypressed()) { /* Show cool animated logo. */ } /* So he skipped our title screen. */
SEE ALSO
install_keyboard(3alleg), readkey(3alleg), ureadkey(3alleg), clear_keybuf(3alleg), simulate_keypress(3alleg),
 
 
 

Copyright © 2011–2018 by topics-of-interest.com . All rights reserved. Hosted by all-inkl.
Contact · Imprint · Privacy

Page generated in 22.91ms.

informativ und kostenlos | und-verkauft.de | www.daelim-forum.com