Keeping a button pressed on a gamecube controller in Dolphin emulator?

Ask gaming related questions (AHK v1.1 and older)
asdf322
Posts: 10
Joined: 01 Jul 2018, 13:09

Keeping a button pressed on a gamecube controller in Dolphin emulator?

Post by asdf322 » 26 May 2022, 13:20

I'm using dolphin emulator and I want to make it so that when I press a button (any key on the keyboard, or even on the gamecube controller is fine) it will emulate the A button being held down on the gamecube. That way, I don't have to actually hold down the physical A button forever like on racing games. Thank you for your help.

Rohwedder
Posts: 7551
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: Keeping a button pressed on a gamecube controller in Dolphin emulator?

Post by Rohwedder » 27 May 2022, 00:47

Hallo,
I don't know this emulator or this cube, but this also presses the A key in addition to any key:

Code: Select all

For all, LF in [[0x1FF,"sc{:X}"],[0xFF,"vk{:X}"]]
    Loop,% LF.1
        IF (""<Key:=GetKeyName(Format(LF.2, A_Index))) And !InStr(Key,"Wheel")
		{ 
           Hotkey, ~*%Key%, a_Down
		   Hotkey, ~*%Key% Up, a_Up
		}
Return
a_Down:
a_Up:
SendInput,% "{Blind}{" StrReplace(A_ThisLabel,"_", A_Space) "}"
Return

Post Reply

Return to “Gaming Help (v1)”