home *** CD-ROM | disk | FTP | other *** search
- /*
- ** kbdshift.c
- **
- ** Pictor, Version 1.51, Copyright (c) 1992-94 SoftCircuits
- ** Redistributed by permission.
- */
-
- #include <dos.h>
- #include "pictor.h"
-
- /*
- ** Returns the state of the various shift and toggle keys.
- */
- int kbdshift(void)
- {
- union REGS regs;
-
- regs.h.ah = 0x02;
- int86(0x16,®s,®s);
-
- return((int)regs.h.al);
-
- } /* kbdshift */
-