webos-gamepad
webos-gamepad copied to clipboard
Gamepads sometimes gets input sometimes not
Gamepads seem finicky with bluetooth2. They always register in /proc/bus/input/devices but not in their /dev/input/eventN ...
Probably same issue than originally reported at https://github.com/webosbrew/apps-repo/issues/20#issuecomment-1133489660
/dev/hidrawN is always working
On first connect /input/eventN is set and gamepad works.
On subsequent connect /input/eventN does not work anymore.
rm -rf /input/eventN allows reconnection. But event recreated with wrong permission, changing chmod+chown and relaunching native apps solves the issue.
Still don't know what the underlying issue is, but could be used as an automated workaround.