[comp.lang.pascal] Polling the Joystick

jduarte@bonnie.ICS.UCI.EDU (02/07/90)

Hi There !!!

I was just wondering if anyone out there knows how to correctly read
values from a joystick... I know that ATs or DOS 3.3+ both have interrupts
that will read joystick values; however, I don't have an AT (I have a PC)
and I use DOS 3.1 .  

Does anyone out there know actual joystick addresses or any info. that will
help me to:
   (1) determine current joystick position (horizontal and vertical)
   (2) determine if the Joystick button(s) have been pressed since last polled.

Any help will be greatly appreciated !!!

Jose Duarte
jduarte@bonnie@ics.uci.edu