home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_400 / 428_02 / libsrc / kbdshift.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-03-13  |  371 b   |  24 lines

  1. /*
  2. ** kbdshift.c
  3. **
  4. ** Pictor, Version 1.51, Copyright (c) 1992-94 SoftCircuits
  5. ** Redistributed by permission.
  6. */
  7.  
  8. #include <dos.h>
  9. #include "pictor.h"
  10.  
  11. /*
  12. ** Returns the state of the various shift and toggle keys.
  13. */
  14. int kbdshift(void)
  15. {
  16.     union REGS regs;
  17.  
  18.     regs.h.ah = 0x02;
  19.     int86(0x16,®s,®s);
  20.  
  21.     return((int)regs.h.al);
  22.  
  23. } /* kbdshift */
  24.