You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So most new laptops, including mine, have those awful touchpads without hardware mouse buttons.
I always wanted to make some keyboard buttons to function as mouse buttons while I'm touching the touchpad, and this project comes tantalizingly close to enabling that.
What I was able to do is to switch a function of some keyboard buttons between themselves and mouse buttons with a keyboard combination which flips a flag every time it's invoked.
But I don't want to manually switch their functions, I want them to switch automatically on whether I'm touching the touchpad. And the touchpad sends BTN_TOUCH event iff it's touched, so it feels like I could use that.
I try mapping it to set(flag,1).hold().set(flag,0). It works! But, because the input is suppressed, the touchpad itself becomes otherwise unusable.
I try set(flag,1).hold_keys(BTN_TOUCH).set(flag,0). Error:
"Button TOUCH": The output_symbol "BTN_TOUCH" is not available for the "mouse" target. Try "".
Okay, what if I send the event directly? set(flag,1).event(EV_KEY,BTN_TOUCH,1).hold().event(EV_KEY,BTN_TOUCH,0).set(flag,0)
Still touchpad doesn't work, and the flag doesn't flip anymore for some reason.
So, what it seems that I need is for the option that enables not to suppress the input. Or maybe I'm missing something?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
So most new laptops, including mine, have those awful touchpads without hardware mouse buttons.
I always wanted to make some keyboard buttons to function as mouse buttons while I'm touching the touchpad, and this project comes tantalizingly close to enabling that.
What I was able to do is to switch a function of some keyboard buttons between themselves and mouse buttons with a keyboard combination which flips a flag every time it's invoked.
But I don't want to manually switch their functions, I want them to switch automatically on whether I'm touching the touchpad. And the touchpad sends BTN_TOUCH event iff it's touched, so it feels like I could use that.
I try mapping it to
set(flag,1).hold().set(flag,0)
. It works! But, because the input is suppressed, the touchpad itself becomes otherwise unusable.I try
set(flag,1).hold_keys(BTN_TOUCH).set(flag,0)
. Error:Okay, what if I send the event directly?
set(flag,1).event(EV_KEY,BTN_TOUCH,1).hold().event(EV_KEY,BTN_TOUCH,0).set(flag,0)
Still touchpad doesn't work, and the flag doesn't flip anymore for some reason.
So, what it seems that I need is for the option that enables not to suppress the input. Or maybe I'm missing something?
Beta Was this translation helpful? Give feedback.
All reactions