home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
World of Shareware - Software Farm 2
/
wosw_2.zip
/
wosw_2
/
CPROG
/
GLOVDRIV.ZIP
/
POWERGLV.DOC
next >
Wrap
Text File
|
1992-08-02
|
3KB
|
75 lines
___________________________________________________________________________
Power Glove Interface for Parallel Port on IBM
___________________________________________________________________________
Nintendo connector layout: *1 1:Ground 2:Clock
7* *2 3:Latch 4:Data
6* *3 5:N/C (lightgun) 6:N/C (lightgun)
5* *4 7:+5V
Connecting to Parallel Port
Glove Printer Port
1 18 GND
2 2 DO
3 3 D1
4 13 SLCT (input)
___________________________________________________________________________
POWER
___________________________________________________________________________
Connect pin 7 on the glove to any location with +5V on the computer.
Pin 1 on any gameport is a good place. You can also use the keyboard
connector. On an XT pinout, the +5V connector is pin 5 as follows:
Looking at the back of the computer:
3 1
5 4
2
Be sure to check the voltage for any other configuration!
___________________________________________________________________________
The CABLE
___________________________________________________________________________
You can buy Nintendo extender cable to cut up for the connector... Get the
longest possible for easy location of the control box...
___________________________________________________________________________
The CODE
___________________________________________________________________________
If you don't get steady sampling on the glove, try adjusting the timing on
your machine by changing the N & D defines...
The Code is currently set for LPT2. (Inport=0x279, Outport=0x278). For
LPT1, change Inport to 0x379 and Outport to 0x378...
The code is written for Turbo C/C++/Borland C++. It uses the BGI library
for the graphics cursor, so it is easily ported to Microsoft C.
The code is named THEGLOVE.C
___________________________________________________________________________
NOTES
___________________________________________________________________________
This is reprinted from Waite Group's "Virtual Reality Playhouse", but they
swiped it from the VR boys on USENET so I don't feel bad about porting it.
Please distriute this freely...
___________________________________________________________________________