[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Apple II Mouse under Applesoft
- Subject: Re: Apple II Mouse under Applesoft
- From: bill_gates@microsoft.com (Simon Williams)
- Date: Wed, 21 Jul 2004 19:56:41 GMT
- Newsgroups: comp.sys.apple2
- Organization: Luddite Enterprises
- References: <YaiLc.46485$2i3.11381@clgrps12>
- User-agent: MacSOUP/2.4.6 (unregistered for 56 days)
- Xref: g2news1.google.com comp.sys.apple2:2347
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).
--
._____. SIMON WILLIAMS *email*at*luddite*dot*ca*
|[LD8]! LUDDITE APPAREL http://apparel.luddite.ca
| (O) | FAILURE RECORDS http://failure.luddite.ca
!__!__! LC475 WEBSERVER http://luddite.no-ip.com