@ian57
sdl2-jstest --list
error: failed to read gamecontrollerdb.txt: Invalid RWops
Found 2 joystick(s)
Joystick Name: 'Logitech Dual Action'
Joystick Path: '/dev/input/event0'
Joystick GUID: 030000006d04000016c2000010010000
Joystick Number: 0
Number of Axes: 4
Number of Buttons: 12
Number of Hats: 1
Number of B***s: 0
GameControllerConfig:
Name: 'Logitech Dual Action'
Mapping: '030000006d04000016c2000010010000,Logitech Dual Action,a:b1,b:b2,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:b 7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,'
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
Joystick Name: 'Gamecube controller'
Joystick Path: '/dev/input/event1'
Joystick GUID: 15000000010000000300000000010000
Joystick Number: 1
Number of Axes: 6
Number of Buttons: 8
Number of Hats: 1
Number of B***s: 0
GameControllerConfig:
missing (see 'gamecontrollerdb.txt' or SDL_GAMECONTROLLERCONFIG)
Axis code 0: 0
Axis code 1: 1
Axis code 2: 3
Axis code 3: 4
Axis code 4: 9
Axis code 5: 10
Button code 0: 304
Button code 1: 305
Button code 2: 307
Button code 3: 308
Button code 4: 309
Button code 5: 310
Button code 6: 311
Button code 7: 315
Hat code 0: 16
sdl2-jstest -t 1
->> Ca bouge tout seul !!!
Joystick Name: 'Gamecube controller'
Joystick Number: 1
Axes 6:
0: 0 [ # ]
1: -32768 [# ]
2: -6766 [ # ]
3: -32768 [# ]
4: -30646 [ # ]
5: -18441 [ # ]
Buttons 8:
0: 0 [ ]
1: 0 [ ]
2: 0 [ ]
3: 0 [ ]
4: 0 [ ]
5: 0 [ ]
6: 0 [ ]
7: 0 [ ]
Hats 1:
0: value: 0
+-----+ up: 0
| | down: 0
| O | left: 0
| | right: 0
+-----+
B***s 0: