TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: JOE DUNFORD
from: GARY GEORGE
date: 1997-09-22 20:03:00
subject: Joystick

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)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.