Add mouse-to-mouse button remapping (left, right, middle, back, forward)#65
Add mouse-to-mouse button remapping (left, right, middle, back, forward)#65guilamu wants to merge 4 commits intoTomBadash:masterfrom
Conversation
Add mouse-to-mouse button remapping (left, right, middle, back, forward)
|
would be nice to add map to more mouse button e.g. 5/6/7 |
|
This causes some instability, I'm working on it. @TomBadash do not merge right now. @alphatownsman I'll work on it after I fix those instability issues. |
|
I've just updated my fork and it's now working without causing any crash. (Mx Master 3, W11). If anyone can confirm thanks! |
|
Okay, here's a recap of all the bug fixes/features added since yesterday: Bug 1: Stuck simulated button on HID++ stall (crash)Files: hid_gesture.py, engine.py Symptom: The app effectively crashes — a diverted button (mode_shift) fires Root cause: When Fix:
Bug 2: Lost button remapping after device sleep (~1 hour)File: hid_gesture.py Symptom: After ~1 hour idle, the mode_shift button stops producing middle-clicks. Pressing it does the hardware default (scroll-mode toggle) instead. The log shows endless Root cause: When the mouse goes to sleep / power-cycles its BLE/USB link, the HID file handle stays open. Fix:
Bug 3: Mouse button lag under disk I/O loadFile: mouse_hook.py Symptom: Pressing the back button 4 times quickly while Explorer is doing file operations — nothing happens for ~1s, then all 4 clicks fire at once. Root cause: The Win32 low-level hook callback ( Fix:
|
Add mouse-to-mouse button remapping (left, right, middle, back, forward)