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?
Anonymous
User login
Please support the defense of Ukraine.
Direct or via Unclutter App
Active forum topics
Recent content
Navigation
No Ads.
No Trackers.
No Social Media.
All Content Locally Hosted.
Built on Free Software.
We have complied with zero government requests for information.
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
Okay, thanks!