Have you ever tried to map a Mugen input on a "Trigger" button of your preferred controller using Mugen's joystick input options ? You'll see that it "jumps" over 2 (or 3) inputs at once ! Very annoying !
Spoiler: why does it jump over 3 inputs ? (click to see content)
The best way is to manually assign buttons through mugen.cfg file, using a text editor (by default, you'll find the mugen.cfg file in the /data subfolder of your mugen folder).
>>> GENERAL STUFF <<<
In mugen.cfg file, you'll be looking for the [Input] section, on the lower part of the file. It looks like :
[Input]First, make sure "Joystick.type" is 1 to enable joystick use (obvious, but you never know ...)
P1.UseKeyboard = 1
P2.UseKeyboard = 1
;0 - Disabled
;1 - Enabled
P1.Joystick.type = 1
P2.Joystick.type = 1
Then, few lines below, you'll be looking for [P1 Joystick] and [P2 Joystick] subsections.
Spoiler: In my case (P1 Joystick) looks like this : (click to see content)
For each Mugen input, you have figures that correspond to buttons of your controller.
And every manufacturer has is own button numbering . So there is no "universal" numbering or such.
Still, here are button numbers for two popular controllers, (FOR PLAYER1 !!!)
Spoiler: PS4 controller button numbers for mugen.cfg (click to see content)
Spoiler: Xbox360 controller button numbers for mugen.cfg (click to see content)
You can use those numbers for Player1 input controls only. For Player2 inputs, you should add (32) to each input figure.
For instance, a Player2 using an xbox360 controller will have his RB input number being 22+32=54 .
>>> READY TO USE STUFF <<<
Here below is a somewhat "common" input configuration you can find by default on many FG games
Spoiler: common button layout (click to see content)
If your comfortable with this input config, you can just copy/paste the following [Joystic] sections corresponding to your controllers for each player !
Spoiler: Player 1 PS4 type controller (click to see content)
Spoiler: Player 2 PS4 type controller (click to see content)
Spoiler: Player 1 Xbox360 type controller (click to see content)
Spoiler: Player 2 Xbox360 type controller (click to see content)