Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!sgi!silvlis!ewa From: ewa@silvlis.com (Ernest Adams) Newsgroups: comp.sys.ibm.pc Subject: Re: GamePorts Message-ID: <182@silvlis.com> Date: 30 Jan 89 23:51:05 GMT References: <1515@psu-cs.UUCP> <4691@xenna.Encore.COM> Sender: news@silvlis.com Reply-To: ewa@silvlis.com (Ernest Adams) Organization: Silvar-Lisco, Menlo Park, CA Lines: 22 I don't want to beat the joystick issue to death, but I wonder if anyone out there can help me. I'm a hardware novice and phrases such as "...you have to program the 5558 timer, then wait 25 microseconds..." give me the blue creevles. [Doubtless this will inspire flaming about how programmers should know *everything* about their machines, etc. I'm getting there, it just takes me longer than most.] Anyway: Is someone willing to write me an assembly-language routine, linkable (or "in-line-able") with Turbo or Microsoft C or Pascal, which will simply return two numbers, each 0 <= N <= 255, which give a joystick position? I'm willing to ask my users to center the joystick and then move it to some extreme, in order to get the bounds; I just want numbers. Also, how about something that tells me whether button 0 or 1 is pressed or not when I ask it? I haven't seen anything here telling how to find out if a button is pressed. Thanks very much. Ernest Adams