Keep button hold, but only one discrete press.
3 posts
• Page 1 of 1
Keep button hold, but only one discrete press.
Hello everyone!!
Honestly, I feel like a fool not being able to find in your huge forum the solution to a question as simple as this:
How can I achieve (in a script) that if I keep a button hold it only emits one discrete press?
I'm unable to resolve this issue.
Thank you for your help and for this great product that is the T2!!!
Honestly, I feel like a fool not being able to find in your huge forum the solution to a question as simple as this:
How can I achieve (in a script) that if I keep a button hold it only emits one discrete press?
I'm unable to resolve this issue.
Thank you for your help and for this great product that is the T2!!!
-
SANTIAGUETEEEEE - Master Sergeant
- Posts: 32
- Joined: Wed Apr 24, 2019 4:10 pm
Re: Keep button hold, but only one discrete press.
- Code: Select all
#define pressTime 60 // how long it should be pressed for in ms
main {
if(check_active(BUTTON_16, pressTime)) {
set_val(BUTTON_16, 0);
}
}
ConsoleTuner Support Team || ConsoleTuner Discord || InputSense Discord
- Mad
- Major General
- Posts: 4536
- Joined: Wed May 22, 2019 5:39 am
Re: Keep button hold, but only one discrete press.
Mad wrote:
- Code: Select all
#define pressTime 60 // how long it should be pressed for in ms
main {
if(check_active(BUTTON_16, pressTime)) {
set_val(BUTTON_16, 0);
}
}
Thank you very much Mad!!!
This works very nice!!!
Cheers!!!
-
SANTIAGUETEEEEE - Master Sergeant
- Posts: 32
- Joined: Wed Apr 24, 2019 4:10 pm
3 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 122 guests