@acris ok le test du joystick 0 fonctionne ainsi que le 1.
sdl2-jstest --list
Found 2 joystick(s)
Joystick Name: 'DragonRise Inc. Generic USB Joystick '
Joystick Path: '/dev/input/event3'
Joystick GUID: 03000000790000000600000010010000
Joystick Number: 0
Number of Axes: 5
Number of Buttons: 12
Number of Hats: 1
Number of B***s: 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: 3
Axis code 4: 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: 'DragonRise Inc. Generic USB Joystick '
Joystick Path: '/dev/input/event0'
Joystick GUID: 03000000790000000600000010010000
Joystick Number: 1
Number of Axes: 5
Number of Buttons: 12
Number of Hats: 1
Number of B***s: 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: 3
Axis code 4: 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
Merci