Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
-
richmond62
- Livecode Opensource Backer

- Posts: 10099
- Joined: Fri Feb 19, 2010 10:17 am
Post
by richmond62 » Fri Feb 21, 2020 11:53 am
Has got
6 buttons:
-

- LHM.jpg (6.01 KiB) Viewed 6902 times
-
Which is great . . .
BUT:
-
-
So when I have this in the
cardScript of a stack"
Code: Select all
on mouseUp XX
put XX into fld "ff"
end mouseUp
It will report buttons 1,2 and 3, but NOT buttons 4,5 and 6.
Any bright ideas?
-
Klaus
- Posts: 14194
- Joined: Sat Apr 08, 2006 8:41 am
-
Contact:
Post
by Klaus » Fri Feb 21, 2020 12:43 pm
richmond62 wrote: ↑Fri Feb 21, 2020 11:53 am
Any bright ideas?
No, LC only supports 3-buttons so far, what do you exspect?
-
richmond62
- Livecode Opensource Backer

- Posts: 10099
- Joined: Fri Feb 19, 2010 10:17 am
Post
by richmond62 » Fri Feb 21, 2020 1:21 pm
I expect heaven.

-
Klaus
- Posts: 14194
- Joined: Sat Apr 08, 2006 8:41 am
-
Contact:
Post
by Klaus » Fri Feb 21, 2020 1:26 pm
richmond62 wrote: ↑Fri Feb 21, 2020 1:21 pm
I expect heaven.

LOL, OK, have fun in the meantime!

-
richmond62
- Livecode Opensource Backer

- Posts: 10099
- Joined: Fri Feb 19, 2010 10:17 am
Post
by richmond62 » Fri Feb 21, 2020 1:31 pm
Maybe I'm naive in the extreme (err, no; don't answer that one), BUT . . .
I thought that all buttons connected to USB input devices, when clicked, would register
in such a way that LiveCode could receive that signal . . .
HOWEVER, keyUp didn't do much for my mouse either.
-
dunbarx
- VIP Livecode Opensource Backer

- Posts: 10320
- Joined: Wed May 06, 2009 2:28 pm
Post
by dunbarx » Fri Feb 21, 2020 3:12 pm
Richmond.
I have a multi-button Logitech mouse. But I have to explicitly assign actions to the various buttons in an app they provide, which ends up in the "extra" section of the system preferences. But all these buttons return a unique value with RawKeyUp.
Craig
-
richmond62
- Livecode Opensource Backer

- Posts: 10099
- Joined: Fri Feb 19, 2010 10:17 am
Post
by richmond62 » Fri Feb 21, 2020 5:06 pm
all these buttons return a unique value with RawKeyUp
Aha! Thank you.
-
richmond62
- Livecode Opensource Backer

- Posts: 10099
- Joined: Fri Feb 19, 2010 10:17 am
Post
by richmond62 » Fri Feb 21, 2020 9:13 pm
Not with either my right-handed or my left-handed ergonomic mouse:
LiveCode 9.5.1
MacOS 10.15.4 beta 2
-
FourthWorld
- VIP Livecode Opensource Backer

- Posts: 10049
- Joined: Sat Apr 08, 2006 7:05 am
-
Contact:
Post
by FourthWorld » Fri Feb 21, 2020 9:19 pm
Does the device come with drivers?
-
richmond62
- Livecode Opensource Backer

- Posts: 10099
- Joined: Fri Feb 19, 2010 10:17 am
Post
by richmond62 » Fri Feb 21, 2020 10:10 pm
FourthWorld wrote: ↑Fri Feb 21, 2020 9:19 pm
Does the device come with drivers?
No.
However, buttons 4 and 5, when clicked produce this:
-

- Screenshot 2020-02-21 at 23.08.30.png (5.01 KiB) Viewed 6771 times
-
in my web-browser (Waterfox) and, when release allow me to scroll up
and down the page.
-
FourthWorld
- VIP Livecode Opensource Backer

- Posts: 10049
- Joined: Sat Apr 08, 2006 7:05 am
-
Contact:
Post
by FourthWorld » Fri Feb 21, 2020 10:55 pm
That looks like what I see when using a scroll wheel, which does indeed generate key values trappable with rawKeyDown. You might want to double-check that your rawKeyDown handler is in play when testing it; if no drivers are needed, key events are probably what's being sent for the non-standard buttons.
-
dunbarx
- VIP Livecode Opensource Backer

- Posts: 10320
- Joined: Wed May 06, 2009 2:28 pm
Post
by dunbarx » Sat Feb 22, 2020 2:24 am
I assume that the Logitech gadget provides a driver.
And one of the buttons on my mouse generates the same value via rawKeyDown as another, even though it does something completely different.
But isn't it so that if any of those buttons perform a function that is unique to that button, then it must generate a unique code somewhere? And whether rawKeyDown can catch it is another story?
I will try to document them all when I get back to my office.
Craig
-
mwieder
- VIP Livecode Opensource Backer

- Posts: 3581
- Joined: Mon Jan 22, 2007 7:36 am
-
Contact:
Post
by mwieder » Sat Feb 22, 2020 5:24 am
Richmond- You have a 6-button left handed mouse?
How many fingers do you have on your left hand?
...and watch out for Inigo Montoya...