Disable specific inputs while a combo is running?
4 posts
• Page 1 of 1
Disable specific inputs while a combo is running?
Hi there! Is there a way to disable specific inputs (for instance the right stick on a Switch Pro Controller, which shows up as SWITCH_RX for the x-axis and SWITCH_RY for the y-axis) only while a combo is running? Thank you!
-
vietnamesepheasant - Sergeant
- Posts: 6
- Joined: Mon Oct 19, 2020 8:25 pm
Re: Disable specific inputs while a combo is running?
Hi,
Try this:
Try this:
- Code: Select all
main {
if(combo_running(myCombo)) {
set_val(SWITCH_RX, 0);
set_val(SWITCH_RY, 0);
}
}
combo myCombo {
}
ConsoleTuner Support Team || ConsoleTuner Discord || InputSense Discord
- Mad
- Major General
- Posts: 4536
- Joined: Wed May 22, 2019 5:39 am
Re: Disable specific inputs while a combo is running?
Thank you for the reply! I put that code in and it's still receiving inputs from SWITCH_RX and SWITCH_RY while the combo is running...interesting...
-
vietnamesepheasant - Sergeant
- Posts: 6
- Joined: Mon Oct 19, 2020 8:25 pm
Re: Disable specific inputs while a combo is running?
Did you change this part:
myCombo should be changed to whatever your combo name is.
If you did that try this one instead, make sure block_input is the last combo in your script and to change myCombo.
- Code: Select all
if(combo_running(myCombo)) {
myCombo should be changed to whatever your combo name is.
If you did that try this one instead, make sure block_input is the last combo in your script and to change myCombo.
- Code: Select all
main {
if(combo_running(myCombo)) {
combo_run(block_input);
}
}
combo myCombo { }
// must be last combo
combo block_input {
set_val(SWITCH_RX, 0);
set_val(SWITCH_RY, 0);
}
ConsoleTuner Support Team || ConsoleTuner Discord || InputSense Discord
- Mad
- Major General
- Posts: 4536
- Joined: Wed May 22, 2019 5:39 am
4 posts
• Page 1 of 1
Return to GPC1 Script Programming
Who is online
Users browsing this forum: No registered users and 94 guests