🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.atari.st
Article #36470

Re: GFA Basic - Joystick port

#36470
From: 0000;0000038807;3200;250;205;ecs...
Date: Thu, 09 Feb 1989 18:59
16 lines
958 bytes
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!  
Technical Details
Message-ID: <3641@ucdavis.ucdavis.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cwjcc!tut.cis.ohio-state.edu!ucbvax!ucdavis!minnie.ucdavis.edu!ecs40hw036

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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