Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!bloom-beacon!apple!voder!pyramid!ctnews!starfish!cdold From: cdold@starfish.Convergent.COM (Clarence Dold) Newsgroups: comp.sys.ibm.pc Subject: Re: Info on Controlling Joy Sticks Summary: INT 15 - Joystick Support Keywords: joy stick, game controller Message-ID: <712@starfish.Convergent.COM> Date: 13 Sep 88 17:14:39 GMT References: <637@dinl.mmc.UUCP> Organization: Convergent Technologies, San Jose, CA Lines: 24 In article <637@dinl.mmc.UUCP>, noren@dinl.uucp (Charles Noren) writes: > direction on how to read joy stick values on a PC in C or assembly? INT 15H, AH=84H - Joystick Support Input AH =84H DX =0000H Read Switches =0001H Read Potentiometer Returns AX =Switch settings, if DX=0000H POT A(x), if DX=0001H BX =POT A(y), if DX=0001H CX =POT B(x), if DX=0001H DX =POT B(y), if DX=0001H CF =0 IF =1 The Joystick that I bought claims that the 'pot' values read will vary with the speed of the machine. You should assign a value for 0,0 to the pot reading at entry, or at a specific 'recalibration' time. -- Clarence A Dold - cdold@starfish.Convergent.COM (408) 435-5274 ...pyramid!ctnews!mitisft!professo!dold P.O.Box 6685, San Jose, CA 95150-6685