GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
keypressed(3) Allegro manual keypressed(3)

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

#include <allegro.h>

int keypressed();

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

install_keyboard(3), readkey(3), ureadkey(3), clear_keybuf(3), simulate_keypress(3), simulate_ukeypress(3)
version 4.4.3 Allegro

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.