Mouse in Basic [message #382539] |
Thu, 28 March 2019 17:10 |
|
Originally posted by: ncutter1120
Hello,
I want to write a program in applesoft basic utilizing a mouse but I am not
sure how to access the mouse from applesoft(if that is even possible).
Any help is appreciated
Thanks in advance
Raymond
|
|
|
|
Re: Mouse in Basic [message #382545 is a reply to message #382540] |
Thu, 28 March 2019 20:45 |
|
Originally posted by: ncutter1120
On Thursday, March 28, 2019 at 5:17:40 PM UTC-4, Antoine Vignau wrote:
> Read page 206 of http://www.apple-iigs.info/doc/fichiers/iigsfirmware1.pdf
>
> Compatible with all Apple IIs.
>
> av
Ok, now that I can access the mouse from applesoft, I have started to write my program. Along the way, I have ran into another problem. I am trying to use the GET command to read the ESC key but it seems that no matter where I put the code for it, the apple II just ignores it.
Thanks,
Raymond
|
|
|
|
|
|
Re: Mouse in Basic [message #382565 is a reply to message #382555] |
Fri, 29 March 2019 18:10 |
Steve Nickolas
Messages: 2039 Registered: October 2012
Karma: 0
|
Senior Member |
|
|
On Fri, 29 Mar 2019, Anthony Adverse wrote:
> Learn something new every other day... I've never even seen a reference to a wait statement before, had to go away and look it up. Nice work.
>
> A
>
I frequently use "WAIT 49152,128:GET A$".
-uso.
|
|
|
Re: Mouse in Basic [message #382566 is a reply to message #382562] |
Fri, 29 March 2019 18:11 |
Steve Nickolas
Messages: 2039 Registered: October 2012
Karma: 0
|
Senior Member |
|
|
On Fri, 29 Mar 2019, David Schmidt wrote:
> On 3/29/19 3:05 PM, Anthony Adverse wrote:
>> Learn something new every other day... I've never even seen a reference to
>> a wait statement before, had to go away and look it up. Nice work.
>
> Did you find out about the Microsoft Easter egg (in some BASIC dialects) that
> is revealed with WAIT6502,1? I.e.:
> https://www.c64-wiki.com/wiki/Microsoft#Easter_Egg_.28Micros oft.21.29
>
That would be the second revision of BASIC on the Commodore PET, the one
that says ### COMMODORE BASIC ###.
-uso.
|
|
|
Re: Mouse in Basic [message #382571 is a reply to message #382565] |
Fri, 29 March 2019 23:21 |
gids.rs
Messages: 1395 Registered: October 2012
Karma: 0
|
Senior Member |
|
|
On Friday, March 29, 2019 at 4:10:36 PM UTC-6, Steve Nickolas wrote:
> On Fri, 29 Mar 2019, Anthony Adverse wrote:
>
>> Learn something new every other day... I've never even seen a reference to a wait statement before, had to go away and look it up. Nice work.
>>
>> A
>>
>
> I frequently use "WAIT 49152,128:GET A$".
>
> -uso.
Personally, I prefer handling the ASCII value instead of alphabet characters.
KB = 49152: KC = 49168: WAIT KB,128: KY= PEEK(KB)-128: KY= KY-32*(KY>96): POKE KC,0
This eliminates the lowercase check for key presses.
How about these two?
WAIT 49249,128
WAIT 49250,128
|
|
|
|