Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Primary mouse button is confusing #72

Open
Wallby opened this issue Jul 23, 2024 · 1 comment
Open

Primary mouse button is confusing #72

Wallby opened this issue Jul 23, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@Wallby
Copy link

Wallby commented Jul 23, 2024

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

  • OS details: Windows 10 x64
  • Cursr Version: 1.7.2
  • License: Free

Additional Context

-

@ragauskl
Copy link
Contributor

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.

@ragauskl ragauskl added the enhancement New feature or request label Jul 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants