Risk-Aware Code Review: Auto Approve Low-Risk Changes
LiveReview LiveReview LiveReview - Free, Risk-Aware Code Review: Auto Approve Low-Risk Changes | Product Hunt LiveReview - Free, Risk-Aware Code Review: Auto Approve Low-Risk Changes | Product Hunt GitHub Install Now

We'd appreciate a star

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

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. */

Name

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

See Also

install_keyboard(3alleg4),        readkey(3alleg4),       ureadkey(3alleg4),       clear_keybuf(3alleg4),
       simulate_keypress(3alleg4), simulate_ukeypress(3alleg4)

Allegro                                           version 4.4.3                              keypressed(3alleg4)

Synopsis

#include<allegro.h>intkeypressed();

See Also