Use Apple Mouse in Applesoft

3 posts / 0 new
Last post
Offline
Last seen: 2 years 11 months ago
Joined: Dec 24 2007 - 09:25
Posts: 183
Use Apple Mouse in Applesoft

I am learning to program in applesoft but want to know how to use the Apple Mouse or joystick in it, can someone give a short example or tell me how?

Offline
Last seen: 8 years 4 months ago
Joined: Apr 10 2006 - 20:01
Posts: 1013
Joystick coordinates

The mouse is a little more complicated than the joystick. Here's something to show the coordinates of the joystick, anyway:

10 PRINT "X: ";PDL(0);TAB(9);"Y: ";PDL(1)
20 GOTO 10

The PDL() calls will return a value from 0 to 255 on the X or Y axes of the joystick.

Here's an example of a paint program, written in Applesoft:
http://vectronicsappleworld.com/appleii/simpleplotter.html

Offline
Last seen: 2 years 11 months ago
Joined: Dec 24 2007 - 09:25
Posts: 183
Okay, thanks!

Okay, thanks!

Log in or register to post comments