-
Notifications
You must be signed in to change notification settings - Fork 47
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
Long press trigger #14
Comments
I think it is doable - you would have to track the keydown and keyup events for that key. You probably can do a proof of concept without modification to thd. Write a script that touches a file on keydown and a script that checks how far the timestamp of the file is in the past and triggers an action if the key was pressed long enough and bind that to release. caveat:
You can spawn background sleep/check but then you have to be careful to only trigger on long press and not multiple short presses if that would be an issue for your use case. |
So, where is the answer how to configure long presses? |
you can script it as outlined above. |
I think this still might be more elegant if implemented directly at the level of triggerhappy code... |
+1, has to be implemented! |
Hi,
I want to trigger an action after a 3 second press on a button (used as an input key). Do you think Triggerhappy is the correct tool for this usage ? How could I do this ?
Maybe there is a contribution to do ?
Thank you,
The text was updated successfully, but these errors were encountered: