[comp.sys.atari.st] GFA Basic - Joystick port

EJGEORGE@SUNRISE.BITNET (02/08/89)

I have GFA v2.0 and am interested in using the joystick port (1).  Does anyone
know what the trick would be.  I don't want to use for a joystick, I want to
use it for the Atari CX85 Keypad (an old item, I know!).  Recalling the use
of the standard Atari joystick on the 8-bit series, a number was returned
indicating the position of the joystick.  The keypad returned numbers in a
very similar way on those machines, and I would like to find out if there
is a command I'm skipping over or a location that I could Peek?

Also, can anyone suggest a good ST manual similar to Compute's Memory Map set
for the 8-bit series.  I've tried quite a few bookstores, computer stores,
etc., and cannot find a single Atari ST book out there.

Thanks!


EJGEORGE@SUNRISE

*****************************************************************************

And the story goes something like this...

     Ben Franklin stood up and said, "I've been looking at the sun on the back
of the Speakers chair and I've been wondering if it was a rising or a setting
sun.  Now I know, it is a SUNRISE"

*****************************************************************************

ecs40hw036@minnie.ucdavis.edu (0000;0000038807;3200;250;205;ecs40hw) (02/10/89)

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!