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?
Applefritter Talk
Anonymous
User login
Please support the defense of Ukraine.
Credit card, bank transfer
Bitcoin, Ethereum, Polkadot, USDT
via Unclutter App for Mac
Active forum topics
Recent content
Navigation
Announcements
No Ads.
No Trackers.
No Social Media.
All Content Locally Hosted.
40 Gigabytes and Growing.
Built on Free Software.
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!