Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cwjcc!tut.cis.ohio-state.edu!ucbvax!ucdavis!minnie.ucdavis.edu!ecs40hw036 From: ecs40hw036@minnie.ucdavis.edu (0000;0000038807;3200;250;205;ecs40hw) Newsgroups: comp.sys.atari.st Subject: Re: GFA Basic - Joystick port Keywords: Atari ST, GFA Basic, joystick Message-ID: <3641@ucdavis.ucdavis.edu> Date: 9 Feb 89 18:59:50 GMT Sender: uucp@ucdavis.ucdavis.edu Reply-To: ecs40hw036@minnie.ucdavis.edu (Andy) Organization: University of California, Davis Lines: 16 I don't know why people keep talking about GFA BASIC 2.0 as if it couldn't use the joystick. Here's how to access the port: spoke &hfffc02,&h14 ; turn off mouse while whatever loop a = peek(&hfffc02) print a ; a returns the value of the joystick port. ; experiment to find the exact values. . . code . spoke &hfffc02,&h8 ; restore the mouse before exiting program. That's it!