1keypressed(3)                   Allegro manual                   keypressed(3)
2
3
4

NAME

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

SYNOPSIS

10       #include <allegro.h>
11
12
13       int keypressed();
14

DESCRIPTION

16       Returns TRUE if there are keypresses waiting in the input  buffer.  You
17       can  use this to see if the next call to readkey() is going to block or
18       to simply wait for the user to press a key while you still  update  the
19       screen possibly drawing some animation. Example:
20
21          while (!keypressed()) {
22             /* Show cool animated logo. */
23          }
24          /* So he skipped our title screen. */
25
26

SEE ALSO

28       install_keyboard(3),  readkey(3),  ureadkey(3),  clear_keybuf(3), simu‐
29       late_keypress(3), simulate_ukeypress(3)
30
31
32
33Allegro                          version 4.4.3                   keypressed(3)
Impressum