Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!cmcl2!brl-adm!umd5!trantor.umd.edu!louie From: louie@trantor.umd.edu (Louis A. Mamakos) Newsgroups: comp.sys.amiga Subject: Re: How do I read the Joysticks? Message-ID: <2073@umd5.umd.edu> Date: Wed, 25-Nov-87 10:23:47 EST Article-I.D.: umd5.2073 Posted: Wed Nov 25 10:23:47 1987 Date-Received: Sat, 28-Nov-87 18:42:27 EST References: <760@hubcap.UUCP> <816@sdcc18.ucsd.EDU> Sender: ris@umd5.umd.edu Reply-To: louie@trantor.umd.edu (Louis A. Mamakos) Organization: University of Maryland, College Park Lines: 38 Keywords: joysticks In article <816@sdcc18.ucsd.EDU> cs162ffl@sdcc18.ucsd.edu.UUCP (John Schultz) writes: > Here is a simple joystick routine in Modula-2. > For more info, refer to the Hardware Manual, Appendix_A page 13. > buttonloc := ADDRESS(0BFE001H); > joydat[0] := bitsetptr(0DFF00AH); > joydat[1] := bitsetptr(0DFF00CH); > Hope this helps. > John This type of thing is NOT what the hardware manual is for. There are defined, supported ways to this sort of stuff which will continue to work on newer models of the hardware (if/when they come out). 'cmon guys, this ain't no Apple II or C-64 where we go PEEKing and POOKing at random places in memory. We should all consider ourselves fortunate that the A500 and A2000 are real hardware compatible with the A1000. I wonder how many games, etc have hacks like this in 'em? I suppose that these people will get what they deserve eventually. John Schultz: I suggest that you get a copy of the devices and libraries or any of a number of very good books out there. You'll find the proper way to diddle the joysticks/mice without confusing other applications that might happen to be running on your amiga at the time, and that are portable to newer Amiga products that might be available in the future. Louis A. Mamakos WA3YMH Internet: louie@TRANTOR.UMD.EDU University of Maryland, Computer Science Center - Systems Programming