• Login
  • Register
  • Dolphin Forums
  • Home
  • FAQ
  • Download
  • Wiki
  • Code


Dolphin, the GameCube and Wii emulator - Forums › Dolphin Emulator Discussion and Support › Support v
« Previous 1 ... 83 84 85 86 87 ... 1176 Next »

Using a button press to simulate rapid-fire tapping?
View New Posts | View Today's Posts

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Modes
Using a button press to simulate rapid-fire tapping?
08-20-2020, 12:47 PM
#1
KiwiSavagely Offline
Junior Member
**
Posts: 2
Threads: 1
Joined: Aug 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?
Find
Reply
08-20-2020, 10:49 PM
#2
ExtremeDude2 Online
Gotta post fast
*******
Posts: 9,240
Threads: 273
Joined: Dec 2010
Have you tried using the AND function?
Check out my videos (dead)
[Image: sig-22354.png]
Website Find
Reply
08-21-2020, 06:37 AM
#3
Billiard26 Offline
Developer
**********
Developers (Some Administrators and Super Moderators)
Posts: 2,660
Threads: 8
Joined: Feb 2010
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.
Find
Reply
08-21-2020, 08:30 AM
#4
KiwiSavagely Offline
Junior Member
**
Posts: 2
Threads: 1
Joined: Aug 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! 
Find
Reply
« Next Oldest | Next Newest »


  • View a Printable Version
  • Subscribe to this thread
Forum Jump:


Users browsing this thread: 1 Guest(s)



Powered By MyBB | Theme by Fragma

Linear Mode
Threaded Mode