bitgapp / Cursr

KVM - Share Mouse & Keyboard between multiple computers. Custom borders and more!
https://cursr.app
Other
143 stars 4 forks source link

Primary mouse button is confusing #72

Open Wallby opened 1 month ago

Wallby commented 1 month ago

Describe the Bug/Issue

See steps to reproduce.

Steps to Reproduce

  1. In Windows 10.. go to "Settings" -> "Mouse" and set "Select your primary button" to right on both devices.
  2. Try left and right click on both devices, on the device where the keyboard and mouse are plugged in the primary button will be as set up, whereas on the other the primary button will be reversed.

Expected Behavior

Either the primary button of the device on which the mouse currently is is used, or the primary button of the device on which the mouse is plugged in is used regardless of the settings of the device on which the mouse currently is.

Screenshots -

Your Environment

Additional Context

-

ragauskl commented 1 month ago

I did a quick test and Cursr is working as expected, the problem is that Windows inverts the mouse click again.

Current behavior if you swap primary mouse buttons on both devices (A and B), so on both devices right mouse button creates a 'left click' and left mouse button creates a 'right click':

  1. On device A you click right mouse button which Windows converts to 'left click'/primary
  2. Cursr sends 'left click' to device B
  3. Windows converts the 'left click' to 'right click' due to the setting which should affect only true mouse click, not simulated event by Cursr.

What I can do is see if there's a setting to tell Windows not to invert simulated event or read the setting on receiving device (in this case device B) and invert in Cursr if left and right click buttons are inverted, because Windows will invert it again. If it's as easy as to add a 'flag' on simulated event I'll add it to next update, however if it has to be handled fully on Cursr side it may be some time before I'll find time for this as it seems to be niche issue/use case (unless it gets more interest/thumbs up) and it will require more work.