Skip to content

on_pop() to click changing primary click settings [Windows 11] #615

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

Closed
matthew-hagemann opened this issue May 17, 2023 · 1 comment
Closed

Comments

@matthew-hagemann
Copy link

matthew-hagemann commented May 17, 2023

Talon: 0.3.1
System: Windows 11

I have the mouse buttons reversed on Windows 11 (Right is now primary click). When using on_pop() to click, the primary mouse click is reverted on my mouse back to the left mouse button.

Steps to reproduce:

  1. By default, left is primary click, right is secondary.
  2. Update mouse settings to set right click as primary. On Windows 11: Settings -> Bluetooth & devices -> Mouse -> Primary click -> Right
  3. Set on_pop() to perform primary click . I am using knausj_talon, so the code looks something like this in /plugin/mouse/mouse.py:
@ctx.action("user.noise_trigger_pop")
def on_pop():
        ctrl.mouse_click(button=0, hold=16000)
  1. Use pops to click the primary mouse button (10-20 times should do it).
  2. In settings, primary click is still showing as right, however has reverted back to left click if I use my mouse.

Things that do not trigger the primary key to swap:

  1. Using the mouse with Talon closed.
  2. Using the mouse with Talon open but not popping.

I am currently getting around this issue by using X-Mouse Button Control to change right mouse to left and left to right, so it definitely feels like there is something funny going on with the interaction with Windows 11 and its mouse button settings.

It's a weird one, let me know if you would like any further details!

@lunixbochs
Copy link

fixed in beta v0.3.1-600

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants