LibGGI API Manual | ||
---|---|---|
Prev |
ggiGetc gets a character from the keyboard, and blocks if there is no key immediately available.
ggiKbhit checks if a key has been hit on the keyboard. This does not consume the key. It is used for easy porting of old DOS applications.
Important: Do not poll like this: do while( ! ggiKbhit(vis) ); On a multitasking OS you would be wasting a lot of resources which could be available to other processes. If you want to wait for a key, use the ggiGetc call.