My 6-button mouse

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

mwieder
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3581
Joined: Mon Jan 22, 2007 7:36 am
Contact:

Re: My 6-button mouse

Post by mwieder » Sat Feb 22, 2020 5:27 am

Richard -

If that's the model, from the technical specs it looks like the drivers are for Windows only.

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10099
Joined: Fri Feb 19, 2010 10:17 am

Re: My 6-button mouse

Post by richmond62 » Sat Feb 22, 2020 5:36 pm

FourthWorld wrote:
Sat Feb 22, 2020 4:00 am
Is it this model?
https://www.adesso.com/UploadFiles/20170125031528.pdf
No.

It is a genuine, no name, made in the PRC thing from eBay.UK.

However, it's right-handed companion is a Trust item 22885 made in exactly the same place.
-
twoRATS.png

mwieder
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3581
Joined: Mon Jan 22, 2007 7:36 am
Contact:

Re: My 6-button mouse

Post by mwieder » Sat Feb 22, 2020 5:42 pm

Nonetheless, the fact that your browser responds to the key 4 and 5 presses means that the device is indeed generating the proper rawKeyDown/Up codes for scrollwheel actions, so it's probably worth checking that again.

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10099
Joined: Fri Feb 19, 2010 10:17 am

Re: My 6-button mouse

Post by richmond62 » Sat Feb 22, 2020 6:47 pm

Buttons 4 and 5 are NOT part of the scrollwheel; they are buttons-qua-buttons.

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10049
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: My 6-button mouse

Post by FourthWorld » Sat Feb 22, 2020 7:51 pm

richmond62 wrote:
Sat Feb 22, 2020 6:47 pm
Buttons 4 and 5 are NOT part of the scrollwheel; they are buttons-qua-buttons.
On similar devices sold under various brands but likely from the same factory, those buttons are for Forward and Back, which map to keyboard actions.

Really, perhaps everyone in this thread may be onto something worth trying: double check your rawKeyDown handler.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10099
Joined: Fri Feb 19, 2010 10:17 am

Re: My 6-button mouse

Post by richmond62 » Sat Feb 22, 2020 8:33 pm

verticalM.jpg
-
Currently working on a laptop running Xubuntu 20.04 beta with a DELUX vertical mouse . . .

This:

Code: Select all

on rawKeyDown RD
   put RD into fld "ff"
end rawKeyDown
brings no joy.

After supper I'll have a go with the other 2 mice on the Macintosh.

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10099
Joined: Fri Feb 19, 2010 10:17 am

Re: My 6-button mouse

Post by richmond62 » Sat Feb 22, 2020 10:06 pm

OK: so here I am, fed, and back on the Mac Mini and from rawKeyDown I get:

Mouse button 1: nothing

Mouse button 2 (popping the scroll wheel): nothing

Mouse button 3: nothing

Mouse button 4: nothing

Mouse button 5: nothing

Mouse button 6: nothing

Scroll wheel away from me: 65308

Scroll wheel towards me: 65309

Same for both the left-handed and the right-handed mouse.

NBG

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10049
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: My 6-button mouse

Post by FourthWorld » Sat Feb 22, 2020 10:09 pm

USB input devices tend to work one of two ways: they either map their inputs to common OS-supported features like mouse and keyboard actions, or they require a driver to take those inputs and use OS APIs to produce an action.

Are you sure the device requires no driver?

Does your rawKeyDown handler work with the keyboard?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10049
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: My 6-button mouse

Post by FourthWorld » Sat Feb 22, 2020 10:11 pm

I wonder if polling the keysdown may work. Some Windows gestures get mapped to multi-key actions.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10099
Joined: Fri Feb 19, 2010 10:17 am

Re: My 6-button mouse

Post by richmond62 » Sat Feb 22, 2020 10:16 pm

mwieder wrote:
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?
Unfortunately only 5; but, oddly enough, I am able to move them independently of
each other, so it is possible for one of them to press more than one button.

The 2 ergonomic mice I have connected to my Mac Mini both have 3 buttons on their inner-sides
that can be clicked with the thumb.
-
Screenshot 2020-02-22 at 23.15.43.png
-
Buttons 4 and 5 allow one to do a sort of drag-n-drop scroll thing with the mouse in a web-browser.

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10099
Joined: Fri Feb 19, 2010 10:17 am

Re: My 6-button mouse

Post by richmond62 » Sat Feb 22, 2020 10:21 pm

Does your rawKeyDown handler work with the keyboard?
Yup.
-
QK.png
-
No driver: the mice work the same on Macintosh and Xubuntu.
Attachments
QeeKodez.livecode.zip
Here's the stack.
(848 Bytes) Downloaded 200 times
Last edited by richmond62 on Sat Feb 22, 2020 10:22 pm, edited 1 time in total.

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10049
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: My 6-button mouse

Post by FourthWorld » Sat Feb 22, 2020 10:22 pm

richmond62 wrote:
Sat Feb 22, 2020 10:16 pm
Buttons 4 and 5 allow one to do a sort of drag-n-drop scroll thing with the mouse in a web-browser.
I've seen drag-n-drop, and I've seen scrolling, but I can't imagine what a "drag-n-drop scroll thing" is. How does the manufacturer describe it?

I wonder if the keysdown function might provide a clue....
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10099
Joined: Fri Feb 19, 2010 10:17 am

Re: My 6-button mouse

Post by richmond62 » Sat Feb 22, 2020 10:25 pm

a sort of drag-n-drop scroll thing
That was me just getting stroppy. 8)

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10099
Joined: Fri Feb 19, 2010 10:17 am

Re: My 6-button mouse

Post by richmond62 » Sat Feb 22, 2020 10:31 pm

I wonder if the keysdown function might provide a clue....
Grasping at straws I'm afraid.
-
KzD.png
Attachments
Keeze Down.livecode.zip
Here's the stack.
(865 Bytes) Downloaded 188 times

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10049
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: My 6-button mouse

Post by FourthWorld » Sat Feb 22, 2020 10:41 pm

If that was in response to a click from the device it looks like you have success, no?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Post Reply