Hi Joe!
GG>Oh, yes, and the '01' call (read resistive inputs) is *slow*.
JD> What would you suggest ? A polling loop ?
Well ... that's why it's slow. The original "games port" had the world's
cheapest A/D converters: you sent a pulse, by toggling an output bit, to
charge up a capacitor, then counted the time in a spin loop until the
capacitor discharged through the (about) 250K potentiometer in the joystick
to some threshold. I don't remember the typical time constants, but left and
up were minimum, right and down were maximum.
There are "high end" joystick ports on the market, which I expect do things
in a much more civilized manner, but I bet they replace the built-in bios
code with their own.
Gary
--- Amazing what caffeine and no sense of self-preservation can do ...
---------------
* Origin: Midnight Oil, St. Albert, AB (1:342/607)
|