[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Apple II Mouse under Applesoft



Hi All,

I seem to remember using the Apple II with a mouse, and being able to
program an Applesoft basic program to actually read the mouse x,y and
button.
What I can't remember is how it's done - or honestly, if I do remember
correctly about being able to use the mouse with applesoft!

10 PRINT CHR$(4);"IN#4":REM MOUSE SLOT
20 X=PEEK(49254):Y=PEEK(49255)
30 BU=PEEK(49188)
40 VTAB 10:HTAB1:PRINT"X=";X;"  Y=";Y;"   BUTTON=";BU;"     ";
50 GOTO 20

^^^ Would this work or ? ^^^

Am I on crack, or can this be accomplished? - The memory is fading somewhat
from those early Applesoft days!

TIA,
Craig