Dixit František Kučera (2020-06-08 5:01 p.m.):
Dne 20. 05. 20 v 5:53 Paul Guertin napsal(a):
Hello again František,
Just to let you know -- I was a bit annoyed that clicking the
scroll wheel sent the same code as clicking the middle button,
and playing a bit with your code, I found a way to have
every button send a different code to the computer, including
the one behind the scroll wheel. As reported by xev, I now
have the following:
Left button = 1
Middle button = 2
Right button = 3
Scroll forward = 4
Scroll backward = 5
Back thumb button = 8
Front thumb button = 9
Clicking the wheel = 10
Button behind wheel = 11
All I needed was to change a couple magic constants in your
code. Specifically, lines 83 and 86 of CadMouseConfig.h need
to be changed to:
(constants were 0x0c and 0x2f previously).
I don't know if that works on the Pro version as well, but
feel free to add this to your code if it does.
Thanks! This is interesting. And it works even with the Pro version.
The wheel is then button 10 and the button behind the wheel is 11.
I have tested it today. I will put it into the GUI and CLI options and release a new
How did you found these values? It would be nice to reveal meaning of the other magic
P.S. If you are OK with public communication, please respond to the
<mouse-dev(a)lists.globalcode.info> mailing list, it might be useful for others.
I'm glad to learn it works with the Pro version as well!
I found the values by looking for constants in the code
that matched the values shown by xev, and then changing
the numbers until I got what I wanted. Pure trial and
Weeks ago, I tried to subsrcribe to the
mouse-dev(a)lists.globalcode.info mailing list, but I
never received anything and assumed the mailing list
was not functional. Can you check if this address
is listed as a member, and add me if it isn't?
I'll cc this message to the list as well.