Hi nadenislamarre,
Thanks for your fast reply.
sdl2-jstest work now 🙂
Here is the information I receive:
Joystick Name: 'DragonRise Inc. Generic USB Joystick '
Joystick Path: '/dev/input/event22'
Joystick GUID: 03000000790000000600000010010000
Joystick Number: 0
Number of Axes: 4
Number of Buttons: 12
Number of Hats: 1
Number of Balls: 0
GameController:
Name: 'DragonRise Inc. Generic USB Joystick'
Mapping: '03000000790000000600000010010000,DragonRise Inc. Generic USB Joystick,a:b2,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a3,righty:a4,start:b9,x:b3,y:b0,'
Axis code 0: 0
Axis code 1: 1
Axis code 2: 2
Axis code 3: 5
Button code 0: 288
Button code 1: 289
Button code 2: 290
Button code 3: 291
Button code 4: 292
Button code 5: 293
Button code 6: 294
Button code 7: 295
Button code 8: 296
Button code 9: 297
Button code 10: 298
Button code 11: 299
Hat code 0: 16
So if I am not wrong, here is what is suppose to done:
left code 16 (ABS_HAT0X), value -1
right code 16 (ABS_HAT0X), value 1
Joystick
up
down
left
right
Start code 297 (BTN_BASE4), value 1 Button Code: 9
B code 296 (BTN_BASE3), value 1 Button Code: 8
A code 294 (BTN_BASE), value 1 Button Code: 6
C-pad
up code 288 (BTN_TRIGGER), value 1 Button Code: 0
down code 290 (BTN_THUMB2), value 1 Button Code: 2
left code 291 (BTN_TOP), value 1 Button Code: 3
right code 289 (BTN_THUMB ), value 1 Button Code: 1
Left code 292 (BTN_TOP2), value 1 Button Code: 4
Right code 293 (BTN_PINKIE), value 1 Button Code: 5
Z code 295 (BTN_BASE2), value 1 Button Code: 7
So I have try to change the controller with configure a pad and I have configure the d-pab and button A & B just to know if it work and it work at menu but when mugen is started, the config file overwrite it.
Here is what I have in 007 Golden Eye controller menu:
D-Pad -> OK
Joystick -> OK
Start - > OK
A = Z + C-Right
B = A
C-UP = C-UP + C-DOWN
C-LEFT -> OK
C-DOWN = Nothing
C-RIGHT = B
L = OK
R = OK
Z = Nothing
I will try to edit the mupenControllers.py for now.