home *** CD-ROM | disk | FTP | other *** search
/ PC Extra Super CD 1998 January / PCPLUS131.iso / DJGPP / V2 / DJLSR201.ZIP / src / libc / pc_hw / kb / getxkey.txh < prev    next >
Encoding:
Text File  |  1995-07-10  |  542 b   |  32 lines

  1. @node getxkey, bios
  2. @subheading Syntax
  3.  
  4. @example
  5. #include <pc.h>
  6. #include <keys.h>
  7.  
  8. int getxkey(void);
  9. @end example
  10.  
  11. @subheading Description
  12.  
  13. Waits for the user to press one key, then returns that key.  Alt-key
  14. combinations have 0x100 added to them, and extended keys have 0x200
  15. added to them. 
  16.  
  17. The file @file{keys.h} has symbolic names for many of the keys.
  18.  
  19. @xref{getkey}.
  20.  
  21. @subheading Return Value
  22.  
  23. The key pressed.
  24.  
  25. @subheading Example
  26.  
  27. @example
  28. while (getxkey() != K_EEnd)
  29.   do_something();
  30. @end example
  31.  
  32.