-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Mouse movement slow and jittering #745
Comments
Mouse key is implemented here: You can change some values or replace all codes in the file as you like. Share your result if you find better configuration or codes. I tried USB-USB converter with keymap like below on Ubuntu 20.04(with 1920x1080 + 1200x1600 monitor), and confirmed that mouse keys worked as expected.
|
Thanks a lot for the suggestion, I will try configuring the source code when I find time to, as I left my USB-USB HHKB Classic at the office, and kept using HHKB Pro 2 as a primary one, because of smoother mouse movements. But in general, I think the TMK mouse algorithm is okay. Of course, the speed could be tweaked to one's personal taste. But the problem is in direction switching. I also have Ubuntu 20, and back in 2019 I also used Hasu Bluetooth Controller with HHKB Pro 2, and as I can tell it behaved similarly to USB-USB. Can you please double-check if you are able to reproduce this behavior, or you don't see any delay when starting the movement, on pres-&-hold? |
In TMK acceleration value is reset to 0 once you release all of mouse keys, you will have to hold both It would be good place to learn if YDKB implementation is available in public. |
Yes, the suggestion for switching direction seems to be working. But still, the initial movement on Press-And-Hold has a short delay, which is decreasing the responsiveness significantly. It looks like YDKB work is based on fork of TMK actually: https://github.com/ydkb/tmk_keyboard |
I didn't find significant difference on their codes with a quick glance. I don't have time to look into YDKB codes further. Let me know if you have something interesting. As for the delay in TMK it seems to be configurable to some extent. You can change its behaviour by define custom values in your config.h, perhaps.
tmk_keyboard/tmk_core/common/mousekey.c Lines 35 to 53 in 5f7d388
Each values are explained here, perhaps. Default values are defined here: |
I just found some time to recompile the source and add my mappings there. Setting the This is like a dream come true. Thank you very much for an amazing work, and my appologies for not reading the specification fully before opening the issue. |
I have received a new Usb2Usb controller, flashed TMK on it, and connected HHKB Classic.
Everything seems fine, except that mouse movement appear to be slow and jittering.
When I try to move the cursor in one direction, first it moves a bit, then there is a short pause, and then movement is resumed.
Can this delay on press-and-hold be removed somehow?
I'm coming here with previous YDKB experience using YangBLE controller, and the TMK implementation seems way less smooth and irresponsive, to the point that it's hard to move and causes finger fatigue because you need to hold the button for too long in order to move the cursor from point A to point B.
Similar behavior is with
medium
andfast
speed applied, the offset distance is higher, but still, there is quite a bit of delay on press and hold.To me, it looks like the frequency of actions being set from the controller is too low, and we should be sending more frequent but granular movements.
Edit: attached a video demonstrating the difference
mouse-movement-current-vs-expected.mp4
The text was updated successfully, but these errors were encountered: