Is game controller check done on ManetteDevice's side makes udev's joysticks tagging void
The is_game_controller
function in manette-device.c
prevents non-game controller detected devices from creating its corresponding ManetteDevice
. But this check is applied even for devices detected with udev in the ManetteMonitor
, which can be forced to be detected as ID_INPUT_JOYSTICK
with an entry in udev's hwdb, so if a device is in this hwdb, then it won't be accepted by is_game_controller
and so udev's tagging with ID_INPUT_JOYSTICK
.
Anyway, this check was only meant for devices found with the fallback backend of the monitor (i.e. GFileMonitor on /dev/input), so it must be moved over there and only used for the fallback backend.