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

  1. @node bioskey, bios
  2. @subheading Syntax
  3.  
  4. @example
  5. #include <bios.h>
  6.  
  7. int bioskey(int command)
  8. @end example
  9.  
  10. @subheading Description
  11.  
  12. @table @asis
  13.  
  14. @item @var{command} = 0
  15.  
  16. Returns the next key pressed
  17.  
  18. @item @var{command} = 1
  19.  
  20. Checks the keyboard, returns zero if no key pressed, else the key.  Does
  21. not dequeue the key. 
  22.  
  23. @item @var{command} = 2
  24.  
  25. Returns the shift state:
  26.  
  27. @example
  28. 7654 3210  Meaning
  29.  
  30. ---- ---X  Right shift key down
  31. ---- --X-  Left shift key down
  32. ---- -X--  Ctrl key down
  33. ---- X---  Alt key down
  34. ---X ----  Scroll lock on
  35. --X- ----  Num lock on
  36. -X-- ----  Caps lock on
  37. X--- ----  Insert on
  38. @end example
  39.  
  40. @end table
  41.  
  42. @subheading Return Value
  43.  
  44. Depends on @var{command}.
  45.  
  46. @subheading Example
  47.  
  48. @example
  49. while (!bioskey(1))
  50.   do_stuff();
  51. @end example
  52.  
  53.