JD Fenech wrote:
Background:
I have a PS1 controller connected to my PC via USB. I know it works,
because I'm able to read data from /dev/input/js0 and actually use this
in several native linux games.
The joystick ports are 0200H and 0201H, IIRC. Using debug, you can
read 0201H (- i 201) and see whether pressing and releasing buttons
changes the bits read. IIRC, reading 0200H "triggers" the timers on the
joystick port. You can't type the commands fast enough to do an input
on the port and see this, but you can write a little program which
does that, then watches port 0200H and prints counts of how long it
took the first bit to change, the second, and so on.
Mike
--
p="p=%c%s%c;main(){printf(p,34,p,34);}";main(){printf(p,34,p,34);}
Oppose globalization and One World Governments like the UN.
This message made from 100% recycled bits.
You have found the bank of Larn.
I can explain it for you, but I can't understand it for you.
I speak only for myself, and I am unanimous in that!
--
To unsubscribe from this list: send the line "unsubscribe linux-msdos" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html