01 September 2006, 05:27 | #1 |
Registered User
Join Date: Dec 2004
Location: Hogtown, Canada
Posts: 16
|
MOUSE(0) and AmigaBASIC ...
So I have AmigaBASIC manual and interpreter (from the Extras 1.3 disk) at hand, and am trying to figure out how to use the mouse. The "MOUSE ON" and "ON MOUSE GOSUB Wherever" bits have been done.
Now the trick is to interpret mouse clicks. The response for clicking and double clicking pretty much work as expected, with one quirk. MOUSE(0) likes returning -1 and -2 even when the mouse button is not being held down (I rarely see 1, almost always on the first click but the first click isn't necessarily a 1, and don't recall seeing 2 at all). I also see -3 coming up a lot, which is entirely undocumented in revisions 2 and 3 of the manual. Can anybody helf clarify what's going on here? |
01 September 2006, 12:32 | #2 | |
Registered User
Join Date: Mar 2006
Location: Germany
Posts: 899
|
Quote:
|
|
01 September 2006, 16:07 | #3 |
Registered User
Join Date: Dec 2004
Location: Hogtown, Canada
Posts: 16
|
Gee, I really should learn how to read rather than skim -- because the English manual says that too. (Thank-you for pointing it out.)
Which leaves the other problem. Why is behaving like I'm holding the mouse button down when I'm not? |
01 September 2006, 16:19 | #4 |
Registered User
Join Date: Dec 2004
Location: Hogtown, Canada
Posts: 16
|
Okay, I figured out that it must be looking at the current status of the mouse button. So it needs some sort of delay in order to figure out if it is a click or a click and hold.
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
AmigaBASIC Compilers | Leandro Jardim | request.Apps | 4 | 22 May 2013 22:59 |
NZ AmigaBASIC education disks | redblade | project.TOSEC (amiga only) | 2 | 15 December 2011 10:32 |
Windows text to AmigaBasic ? | Angelsoft | New to Emulation or Amiga scene | 9 | 24 October 2011 21:31 |
looking for AmigaBasic Interpreter | phil321 | New to Emulation or Amiga scene | 41 | 19 December 2006 14:26 |
AmigaBASIC unprotector | Minuous | request.Apps | 1 | 01 June 2005 23:28 |
|
|