[plug] joysticks/gamepads in Linux

Denis Brown dsbrown at cyllene.uwa.edu.au
Thu Oct 26 11:46:15 WST 2000


At 10:17 26/10/2000 +0800, Dennis Plester asked about gaming controllers 
and Linux.

If you have yet to visit it, the Hardware HOWTO section 23.5 seems 
appropriate.  They reference a site which looks promising; there may be a 
game port tester in there somewhere.  If you wanted to roll your own port 
tester then according to IBM's spec for the game port...

I/O address hex 201
Read the port and in the 8-bit returned value, bits 4 through 7 are 1 if 
the corresponding switches are open, and they are 0's for any closed 
switches.  Bits 0 through 3 are a bit more tricky since they require a 
write to the port followed by successive reads to monitor the bit 
status.  Bits 0 through 3 will initially be high and will go low according 
to the resistances seen at the corresponding input socket pins.  Higher 
resistance = longer time interval.

HOWTO
http://www.linux.org.au/LDP/HOWTO/Hardware-HOWTO-23.html#ss23.5

Joystick site for further info
http://atrey.karlin.mff.cuni.cz/~vojtech/joystick/

HTH,
Denis




More information about the plug mailing list