I get this when trying to diagnose the joystick:
[root@BATOCERA /userdata/system]# sdl2-jstest
Usage: sdl2-jstest [OPTION]
List available joysticks or test a joystick.
This programm uses SDL for doing its test instead of using the raw
/dev/input/jsX interface
Options:
-h, –help Print this help
–version Print version number and exit
-l, –list Search for available joysticks and list their properties
-t, –test JOYNUM Display a graphical representation of the current joystick state
-g, –gamecontroller IDX
Test GameController
-e, –event JOYNUM Display the events that are recieved from the joystick
-r, –rumble JOYNUM Test rumble effects on gamepad JOYNUM
Examples:
sdl2-jstest –list
sdl2-jstest –test 1
[root@BATOCERA /userdata/system]# sdl2-jstest –event 21
*** stack smashing detected ***: terminated
Aborted
[root@BATOCERA /userdata/system]#