Snoothy / UCR

Universal Control Remapper [Alpha]
MIT License
888 stars 88 forks source link

(Logitech) Mice ? X1 and X2 #239

Open evanricard opened 3 years ago

evanricard commented 3 years ago

Do any of the providers support a "standard" X1 / Mouse4 or X2 / Mouse5 button press? I'm only seeing that I'm able to bind left/right mouse button..sincere apologies for the vexation and if someone else has asked this question before - I'll check the rest of the issues right after this. Thanks!

evilC commented 3 years ago

Yes, Interception does.
If it's a non-gaming Logitech, the reason probably is that the software that came with the mouse is set to send "browser back" or "browser forward", and not send buttons 4 or 5. Before I switched to Logitech gaming mice, I used to have a similar issue and I fixed it by setting these buttons in the Logitech software to something like "Default Behaviour".

evanricard commented 3 years ago

Thank you, @evilC! I have a Logitech Ergo MX that I use, & the 'Logitech Options' (ala not Logitech Gaming Software, unfortunately) therein is uncooperative unless I can figure out how to properly intercept a Mouse4/Mouse5. I'd like to work towards a setup of axial rotation in world of warcraft without using a physical controller now that they have controller support as of this year. After reading your comment, I tried intercepting the Ergo MX buttons with X-Mouse (button control) to do 'Click Button 4/5' to which showed up right away as unknown input in UCR [ I could left/right click]. I also tried a periduo-606 perixx mouse and the device is registering in UCR but I was unable to assign either key 4 / 5; just the driver for this mouse, no user software.

I will try my Spacemouse later tonight or anything else I can think of besides uninstalling drivers unless it'd be one of my virtual devices :). There is a high chance I could be doing something wrong/faulty here.

Edit: the perixx mouse does not seem to produce any recognizable input of course

evilC commented 3 years ago

If my guess as to what is wrong is correct, then trying to fix this using 3rd party software is the wrong way to go about it. It's caused by Logitech mapping the side buttons to "Browser Back" and "Browser Forward" (Which are in effect keyboard keys) by default instead of XButton1 and XButton2 (Which are mouse buttons). I don't think I used "Logitech Options" when I had this problem back in the day, I think it was an older incarnation of their software - you need to work out how to change the setup of the mouse in Logitech Options to assign XButton1 and XButton2 to these buttons. Another potential alternative: Since it is sending Browser Back / Browser Forward - these are keyboard keys. In UCR's Interception provider, there might also be an entry in the Keyboard devices (ie where you are now selecting something like M: Logitech Ergo Mx, select K: Logitech Ergo Mx instead) Select this for input instead of the mouse, and when you press the mouse button, it will probably show browser back or browser forward

If Interception does not have a K: entry for your mouse, then what is happening is that the mouse is sending a signal to the Logitech software, and the software is then synthesizing the input (Be that browser back/forward or even XButton1/2). If the Logitech software is sending the input, then Interception will not see it - Interception only sees input coming from the physical device itself (Because interception is a driver listening to USB data)

evanricard commented 3 years ago

Well, thanks for venturing a guess you are probably correct in saying I need to try the K: Ergo although I'd thought I did at the time of writing. I may have only selected the M: device. Regrettably, Logitech Options doesn't provide an X1 or X2 mapping. Woe is me. I did try both K: and the M: device again just now I'm not retrieving virtual or synthesized input afaik. I'm hoping I can get the SpaceMouse to play nicely at this point!

evilC commented 3 years ago

As I said, it might be called something like "Default Operartion". Out of curiosity, cam you map middle mouse click? ie is Interception seeing anything at all coming from the mouse? If not, you might want to see if there is an "Onboard" mode to make the mouse itself send the input, not the software. The Ergo MX has at least 5 buttons, I can almost guarantee that there's an option in there somewhere to do it, it's just maybe not very obvious. Another option might be to uninstall Logitech Options