So, I've read a lot of information, but no luck.
I followed this https://batocera-linux.xorhub.com/wiki/doku.php?id=en:diagnose_joysticks_issues and I have:
evtest
...
/dev/input/event5: Gamepad
...
Input driver version is 1.0.1
Input device ID: bus 0x5 vendor 0x1949 product 0x402 version 0x11b
Input device name: "Gamepad"
Supported events:
Event type 0 (EV_SYN)
Event type 1 (EV_KEY)
Event code 1 (KEY_ESC)
...
sdl2-jstest --list
Found 3 joystick(s)
Joystick Name: 'Gamepad'
Joystick Path: '/dev/input/event5'
Joystick GUID: 0500000049190000020400001b010000
Joystick Number: 0
Number of Axes: 7
Number of Buttons: 264
Number of Hats: 1
Number of Balls: 1
GameController:
not a gamepad
Axis code 0: 0
Axis code 1: 1
Axis code 2: 2
Axis code 3: 5
Axis code 4: 9
Axis code 5: 10
Axis code 6: 32
Button code 0: 1
....
Button code 254: 425
Button code 255: 0
Button code 256: -1
Button code 257: -1
Button code 258: -1
Button code 259: -1
Button code 260: -1
Button code 261: -1
Button code 262: -1
Button code 263: -1
Hat code 0: 16
cat /etc/udev/rules.d/99-joysticks-exotics.rules
...
IPEGA
SUBSYSTEM=="input", ATTRS{name}=="ipega Bluetooth Gamepad", MODE="0666", ENV{ID_INPUT_JOYSTICK}="1"
SUBSYSTEM=="input", ATTRS{name}=="ipega Bluetooth Gamepad ", MODE="0666", ENV{ID_INPUT_JOYSTICK}="1"
SUBSYSTEM=="input", ATTRS{name}=="PG-9021", MODE="0666", ENV{ID_INPUT_JOYSTICK}="1"
SUBSYSTEM=="input", ATTRS{name}=="Gamepad", MODE="0666", ENV{ID_INPUT_JOYSTICK}="1"
SUBSYSTEM=="input", ATTRS{name}=="GamePad", MODE="0666", ENV{ID_INPUT_JOYSTICK}="1"
...
The I found this thread https://forum.recalbox.com/topic/6565/mandos-terios-t3-no-logro-q-funcionen
It seems that I should add the last line of this file https://github.com/recalbox/recalbox-buildroot/blob/master/board/recalbox/fsoverlay/etc/modprobe.d/usbhid.conf#L49
in order to work. But even though I run
mount -o remount, rw /
when saving the file I get "Error writing /etc/modeprobe.d/usbhid.conf: Read-only file system"
So I'm stuck here, I don't know what to do next.
It seems that the problem is fix in recalbox v4.1, but I suspect that batocera.linux v5.8 is using recalbox v4.0, Am I right?
Beside from the Gamepad problem, I found that the Keyboard configuration also change when I start an emulator. Keys are not the same I had configured on the main menu.