info:
hardware in je pc
PORT 0200-020F - Game port reserved I/O address space
0200-0207 - Game port, eight identical addresses on some boards
0201 R- read joystick position and status (see #P0542)
0201 -W fire joystick's four one-shots
0201 RW gameport on mc-soundmachine, mc 03-04/1992: Adlib-compatible,
Covox 'voice master' & 'speech thing' compatible soundcard.
(enabled if bit1=1 in PORT 038Fh. Because it is disabled on
power-on, it cannot be found by BIOS) (see PORT 0388h-038Fh)
Bitfields for joystick position and status:
Bit(s) Description (Table P0542)
7 status B joystick button 2 / D paddle button
6 status B joystick button 1 / C paddle button
5 status A joystick button 2 / B paddle button
4 status A joystick button 1 / A paddle button
3 B joystick Y coordinate / D paddle coordinate
2 B joystick X coordinate / C paddle coordinate
1 A joystick Y coordinate / B paddle coordinate
0 A joystick X coordinate / A paddle coordinate
uit
http://lrs.fmi.uni-passau.../doc/interrupt-60/PORTS.B
als je zelf de "driver" wil gaan schrijven.. je kunt natuurlijk ook een api call gebruiken om de joystick info via windows op to vragen .. sorry weet niet hoe dat werkt .. kan noou zo heel moeilijk zijn..
over de connector:
15 PIN D-SUB FEMALE at the computer.
15 PIN D-SUB MALE at the joystick cable.
Pin Name Dir Description
1 +5V > +5 VDC
2 /B1 < Button 1
3 X1 < Joystick 1 - X
4 GND -- Ground
5 GND -- Ground
6 Y1 < Joystick 1 - Y
7 /B2 < Button 2
8 +5V > +5 VDC
9 +5V > +5 VDC
10 /B4 < Button 4
11 X2 < Joystick 2 - X
12 GND/MTX -/> Ground OF MIDI TX
13 Y2 < Joystick 2 - Y
14 /B3 < Button 3
15 +5V/MRX >/< +5 VDC OF MIDI RX
Note: Direction is Computer relative Joystick.
Note: Use 100kohm resistor.
uit "hardware book"(HWB)
http://www.hardwarebook.net/
als je nog meer info nodig hebt mail me dan maar ff op reinder@eightdot.tmfweb.nl
[
Voor 9% gewijzigd door
Verwijderd op 02-12-2002 22:48
]