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:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1994-03-13
|
371 b
|
24 lines
/*
** 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 */