input-remapper
input-remapper copied to clipboard
Allow user to set "Trigger Threshold" to 0 when mapping mouse axis to keyboard
Hi, I'm currently experimenting with the beta branch and it's Mouse Axis remap functionality.
I was very excited when finding out about this feature, unfortunately it's a bit of a let down since after mapping the Axis to a key (j for example), it triggers the key so "slowly" (idk how to describe it). I think it has something to do with the "Trigger Threshold" setting, which I can't set to 0 if not mapped to a Joystick Axis.
My goal is to experiment this in Vim, where I move my cheap track pad and the software turns mouse movement into hjkl keys. But currently it's impractical due to how limited the settings are.
Can I somehow overcome the limitation of the setting? Thank you very much. Making it feels more "sensitive" rather than "rigid" like right now.
There is no 0 threshold because that would mean: "trigger this mapping at 0 speed" which makes no sense. You can set it to plus or minus something in order to trigger the mapping if the mouse moves at the given speed in the given direction.
Using a threshold of +-1 triggers the mapping as soon as the mouse starts moving (without any delay). This is assuming that your mouse generates relative events and not absolute events.
Can you use evtest ($sudo evtest), select your track pad and post the output here?
You can also use evtest to see if maybe your track pad generates the events with some delay. And with the mapping active you can see at which moment input-remapper keyboard generates the events of your mapping.
closing due to inactivity