Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- libc - <b>getkey</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
getkey
======

Syntax
------

     #include <pc.h>
     #include <keys.h>
     
     int getkey(void);

Description
-----------

Waits for the user to press one key, then returns that key.  Alt-key
combinations have 0x100 added to them.  Extended keys return their
non-extended codes.

The file `keys.h' has symbolic names for many of the keys.

getxkey:.   

Return Value
------------

The key pressed.

Example
-------

     while (getkey() != K_Alt_3)
       do_something();


See Also: getxkey

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson