Page 1 of 4

My 6-button mouse

Posted: Fri Feb 21, 2020 11:53 am
by richmond62
Has got 6 buttons:
-
LHM.jpg
LHM.jpg (6.01 KiB) Viewed 6913 times
-
Which is great . . . BUT:
-
Screenshot 2020-02-21 at 12.48.46.png
-
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?

Re: My 6-button mouse

Posted: Fri Feb 21, 2020 12:43 pm
by Klaus
richmond62 wrote:
Fri Feb 21, 2020 11:53 am
Any bright ideas?
No, LC only supports 3-buttons so far, what do you exspect?

Re: My 6-button mouse

Posted: Fri Feb 21, 2020 1:21 pm
by richmond62
I expect heaven. 8)

Re: My 6-button mouse

Posted: Fri Feb 21, 2020 1:26 pm
by Klaus
richmond62 wrote:
Fri Feb 21, 2020 1:21 pm
I expect heaven. 8)
LOL, OK, have fun in the meantime! :D

Re: My 6-button mouse

Posted: Fri Feb 21, 2020 1:31 pm
by richmond62
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.

Re: My 6-button mouse

Posted: Fri Feb 21, 2020 1:37 pm
by richmond62
Aha: not being that original:

https://forums.livecode.com/viewtopic.php?t=26518
-
Screen Shot 2020-02-21 at 2.37.17 PM.png
-
I wonder if he did?

Re: My 6-button mouse

Posted: Fri Feb 21, 2020 3:12 pm
by dunbarx
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

Re: My 6-button mouse

Posted: Fri Feb 21, 2020 5:06 pm
by richmond62
all these buttons return a unique value with RawKeyUp
Aha! Thank you.

Re: My 6-button mouse

Posted: Fri Feb 21, 2020 9:13 pm
by richmond62
Not with either my right-handed or my left-handed ergonomic mouse:

LiveCode 9.5.1

MacOS 10.15.4 beta 2

Re: My 6-button mouse

Posted: Fri Feb 21, 2020 9:19 pm
by FourthWorld
Does the device come with drivers?

Re: My 6-button mouse

Posted: Fri Feb 21, 2020 10:10 pm
by richmond62
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
Screenshot 2020-02-21 at 23.08.30.png (5.01 KiB) Viewed 6782 times
-
in my web-browser (Waterfox) and, when release allow me to scroll up
and down the page.

Re: My 6-button mouse

Posted: Fri Feb 21, 2020 10:55 pm
by FourthWorld
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.

Re: My 6-button mouse

Posted: Sat Feb 22, 2020 2:24 am
by dunbarx
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

Re: My 6-button mouse

Posted: Sat Feb 22, 2020 4:00 am
by FourthWorld

Re: My 6-button mouse

Posted: Sat Feb 22, 2020 5:24 am
by mwieder
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...