Page 1 of 1

[DONE] Gamepad no longer recognized by SDL

PostPosted: Jun 27th, '20, 09:47
by ITA84
Since either today or yesterday my Logitech gamepad is no longer recognized by the pcsxr emulator, which uses SDL for input. To confirm this, I ran an SDL test tool (https://generalarcade.com/gamepadtool/) and that too failed to detect my gamepad. Other software seems to detect it just fine (KDE Plasma System Settings, a Java LWJGL game), but I suppose those use a different interface: as far as I understand, using /dev/input/jsX works, while with /dev/input/eventX it doesn't anymore, so I've checked if it's a permission issue. Are the following permissions supposed to be correct?

Code: Select all
crw-rw---- 1 root input 13, 64 giu 27 08:53 /dev/input/event0
crw-rw---- 1 root input 13, 65 giu 27 08:53 /dev/input/event1
crw-rw---- 1 root input 13, 74 giu 27 08:53 /dev/input/event10
crw-rw---- 1 root input 13, 75 giu 27 08:53 /dev/input/event11
crw-rw---- 1 root input 13, 76 giu 27 08:53 /dev/input/event12
crw-rw---- 1 root input 13, 77 giu 27 08:53 /dev/input/event13
crw-rw---- 1 root input 13, 78 giu 27 08:53 /dev/input/event14
crw-rw---- 1 root input 13, 79 giu 27 08:53 /dev/input/event15
crw-rw---- 1 root input 13, 80 giu 27 08:53 /dev/input/event16
crw-rw---- 1 root input 13, 81 giu 27 08:53 /dev/input/event17
crw-rw---- 1 root input 13, 66 giu 27 08:53 /dev/input/event2
crw-rw---- 1 root input 13, 67 giu 27 08:53 /dev/input/event3
crw-rw---- 1 root input 13, 68 giu 27 08:53 /dev/input/event4
crw-rw---- 1 root input 13, 69 giu 27 08:53 /dev/input/event5
crw-rw---- 1 root input 13, 70 giu 27 09:13 /dev/input/event6
crw-rw---- 1 root input 13, 71 giu 27 08:53 /dev/input/event7
crw-rw---- 1 root input 13, 72 giu 27 08:53 /dev/input/event8
crw-rw---- 1 root input 13, 73 giu 27 08:53 /dev/input/event9


If I manually change the permissions something works in the SDL test tool, so I guess it must be that, but I don't want to tinker with this stuff without understanding it well first.

EDIT: the problem solved itself, as after today's updates (not sure which package it was) the /dev/input/event file for my gamepad has an associated ACL which gives R/W permissions to my user, so everything's back to normal. I'd still be interested in learning whick package does the work, though