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

May I use it to fix debouncing (faulty clicking button) mouse? #6

Open
trappedinspacetime opened this issue Dec 2, 2019 · 2 comments

Comments

@trappedinspacetime
Copy link

First of all thank you for developing this tool. In Windows I used an Autohotkey script to use a mouse with wornout switches. I could use the mouse with the below script.

 LButton::  ;blocks  the left button event completely
 If (A_TimeSincePriorHotkey < 100) ;detects if a faulty hyperclick event occured
 Return ; if it's a faulty  hyperclick, it keeps blocking the left button events
 sendinput {LButton down} ; else send decent simulated click down event
 KeyWait, LButton ; waits for another button event
 sendinput {LButton up} ; send simulated button up event
 Return

It works very well in Windows but Linux missing such a tool.
Is it possible with this tool?

@MerlijnWajer
Copy link
Owner

So sorry for the slow reply.

You should be able to write something like this with a few lines of python code, but I don't have any good examples for you.

Did you end up trying this?

@trappedinspacetime
Copy link
Author

Thank you for responding. I tried this patch https://github.com/denisix/evdev-debounce-buggy-mouse/blob/master/evdev-debounce.patch it kind of works. But I would also like to try this tool.
You added python binding. I have no idea how it works. If you provide some examples I would port above AHK code into python (I hope).

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