nadenislamarre , thanks for helping me!
I've tested it and they do work correctly. The only strange thing is that the system identifies 2 joysticks with the same name, and I have only one coneccted.
Also, I've mapped my joystick as follows:
[USB GamePad USB GamePad]
plugged = True
plugin = 2
mouse = False
AnalogDeadzone = 4096,4096
AnalogPeak = 32768,32768
DPad R = hat(13 Right)
DPad L = hat(15 Left)
DPad D = hat(14 Down)
DPad U = hat(12 Up)
Start = button(8)
Z Trig = button(9)
B Button = button(2)
A Button = button(1)
C Button R = axis(3+)
C Button L = axis(3-)
C Button D = axis(2+)
C Button U = axis(2-)
R Trig = button(7)
L Trig = button(6)
Mempak switch =
Rumblepak switch =
X Axis = axis(0-,0+)
Y Axis = axis(1-,1+)
I am able to add this joystick to the list using the nano /usr/share/mupen64plus/InputAutoCfg.ini command, save and overwrite the file, but whenever I restart the Batocera, the file is back to it's original text. Also, after adding the joystick to the InputAutoCfg.ini, I cannot find the controller when I go to the joystick configuration on the emulator, which means the edditing of InputAutoCfg.ini is not working. Thus I would need to configure it through the emulator and then i would be able to start a game anymore.
Any suggestions?