home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Usenet 1994 January
/
usenetsourcesnewsgroupsinfomagicjanuary1994.iso
/
sources
/
misc
/
volume1
/
8708
/
27
/
track.c
< prev
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
NeXTSTEP
RISC OS
UTF-8
Wrap
C/C++ Source or Header
|
1990-07-13
|
338 b
|
22 lines
/*
* track -- track the mouse using the serial mouse routines.
*/
#include "smouse.h"
main()
{
Mouse m;
if (MouseInit() < 0) exit(1);
while (!m.button[2])
{
if (MouseRead(&m) < 0) break;
printf("dx = %4d dy = %4d b1 = %1d b2 = %1d b3 = %1d\n",
m.dx, m.dy, m.button[0], m.button[1], m.button[2]);
}
MouseClose();
}