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

Re: Apple II Mouse under Applesoft



In article <1gh8y6m.15h5jys1w3lxmkN%bill_gates@microsoft.com>,
 bill_gates@microsoft.com (Simon Williams) wrote:

> Bender MX <no@morespam.com> wrote:
> 
> > 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!
> 
> You can do mouse programming from Applesoft, but I seem to think it's a
> bit more involved than your example... I think you might have to jump
> through a few hoops to init the mouse, maybe... Anyway, you might do
> well to Google this group as I'm pretty sure that's where I found
> information when I was curious about mouse programming (ie: before
> deciding it all sounded like too much trouble).