I am posting this because someone asked in github and it took a bit to figure it out.
This is without Antimicro or joy2key
MANUALLY assign some keyboard keys to VPX for Custom 1 and Custom 2
You cannot do it in the UI as it will not save so...
Pick 2 keys to use,I am using U and I for this example
open vpx folder\scripts\VPMkeys.vps
Find key code for your keys
U is 22 I is 23
Navigate to %appdata%\VPinballX
Open VPinballX.ini in notepad
find JoyCUstomKey
Edit it to be
' Double leaf/staged flipper switches: By default these are just set to LeftFlipperKey and RightFlipperKey Dim keyStagedFlipperL : keyStagedFlipperL = 22 Dim keyStagedFlipperR : keyStagedFlipperR = 23
Ok now, you need to know what gamepad buttons your staged flips outputs as
you can get that from windows gamepad config
push the buttons, see what windows calls them
In this example i am using a generic xinput gamepad, but controlled type does not matter.
my thumbstick buttons at 9 and 10
Ok now Open VPX
go to dof nudge keys prefs
Ok see our custom 1 2 3 4?
See the U and I showing as keys for 1 and 2
Click the dropdown and pick your button numbers.
Click OK to close dialog.
Now go open twilight zone
Why Twilight Zone?
Cause it's the only damned table i have that i know for sure has staged flips, cause i checked the wiring schematic.
drop in 2 coins and test your staged flips
they should trigger from typing U and I
They should also trigger from pressing the controller buttons you mapped, as VPX will interpret that as key U and I sent and will tell VPM the same.
There, staged flips.
No extra software to run in background.
This will NOT WORK if the table author has bound the 2ndary flips to the primary in the table script
That you have to edit yourself
It will also NOT work, if the ROM does not actually have staged Flips.
But you could script them in yourself.
And Yes, this will work for ROMless EM or Original tables too, though at the moment i am damned if i know what VPX script calls custom key 1 2 3 or 4
but you could use if keycode = 22 and 23 until someone tells me what VPX refers to the keycode as