home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Virtual Reality Zone
/
VRZONE.ISO
/
mac
/
PC
/
PCGLOVE
/
GLOVE
/
PREVIOUS
/
TEST.C
< prev
Wrap
C/C++ Source or Header
|
1991-10-28
|
377b
|
19 lines
#include <stdio.h>
#include "glove.h"
void main(int argc, char *argv[])
{
glove_data glov;
glove_init(argc > 1 ? atoi(argv[1]) : IHIRES, NULL);
while(!kbhit())
{
if (glove_ready()) {
glove_read(&glov);
printf("%+4d %+4d %+4d %+4d %02.2X %02.2X \r",
glov.x, glov.y, glov.z, 255&glov.rot,
255&glov.fingers, 255&glov.keys);
}
}
glove_quit();
}