Date: Thu, 29 Oct 2020 18:24:35 +0000 From: bugzilla-noreply@freebsd.org To: usb@FreeBSD.org Subject: [Bug 250724] USB gamepads are tagged as a mouse by udev Message-ID: <bug-250724-19105-V8JUvVnmpJ@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-250724-19105@https.bugs.freebsd.org/bugzilla/> References: <bug-250724-19105@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D250724 --- Comment #3 from Vladimir Kondratyev <wulf@freebsd.org> --- (In reply to Alex S from comment #2) > X11 itself lacks any support for joysticks, > it only knows (and able to present to applications) > keyboard and pointer devices. Actually, X11 does know of joystick presence. See udev autoconfiguration backend sources: https://gitlab.freedesktop.org/xorg/xserver/-/blob/master/config/udev.c#L254 But... FreeBSD does not have sysfs and most likely will never have, so libu= dev is a shim which uses libmagic-alike heuristics taken from xf86-input-evdev = to detect device type and type tag based on device's evdev descriptor:=20 https://github.com/FreeBSDDesktop/libudev-devd/blob/master/udev-utils.c#L410 It is highly likely that this logic was not ever tested and just does not w= ork in joystick part. So we can try to fix it or e.g. steal from alternative udev-shim library: https://github.com/jiixyj/libudev-fbsd/blob/master/src/libudev.c#L245 --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-250724-19105-V8JUvVnmpJ>