Dolphin, the GameCube and Wii emulator - Forums
Using a button press to simulate rapid-fire tapping? - Printable Version

+- Dolphin, the GameCube and Wii emulator - Forums (https://forums.dolphin-emu.org)
+-- Forum: Dolphin Emulator Discussion and Support (https://forums.dolphin-emu.org/Forum-dolphin-emulator-discussion-and-support)
+--- Forum: Support (https://forums.dolphin-emu.org/Forum-support)
+--- Thread: Using a button press to simulate rapid-fire tapping? (/Thread-using-a-button-press-to-simulate-rapid-fire-tapping)



Using a button press to simulate rapid-fire tapping? - KiwiSavagely - 08-20-2020

I'm struggling to find a way to **simulate rapid-fire button mashing** (think of mashing A to shoot) by **holding down two buttons at the same time** (for example, holding down A+B together or A+LT together). All this while also having the A, B, and LT buttons function normally when not pressed together.  

The syntax is driving me crazy and I think I'm overthinking it. I've been trying with the "If" "tap" and "hold" functions.

Is there a simple way I can use a combination button press to simulate rapid-fire button pressing while also keeping the individual buttons functional?


RE: Using a button press to simulate rapid-fire tapping? - ExtremeDude2 - 08-20-2020

Have you tried using the AND function?


RE: Using a button press to simulate rapid-fire tapping? - Billiard26 - 08-21-2020

Code:
`Button A` & (!`Button B` | timer(0.01))

Activates the input normally when Button A is pressed and "rapid-fires" when Button B is also pressed.
0.01 is the rate of fire in seconds.


RE: Using a button press to simulate rapid-fire tapping? - KiwiSavagely - 08-21-2020

(08-21-2020, 06:37 AM)Billiard26 Wrote:
Code:
`Button A` & (!`Button B` | timer(0.01))

Activates the input normally when Button A is pressed and "rapid-fires" when Button B is also pressed.
0.01 is the rate of fire in seconds.

That works perfectly! Thank you!