search for /dev/input/js as well as /dev/js

Mike Frysinger vapier at
Wed Apr 19 09:15:11 CDT 2006

On Wednesday 19 April 2006 09:18, Mike McCormack wrote:
> Mike Frysinger wrote:
> > with udev now, joystick nodes are created as /dev/input/js# and /dev/js#
> > no longer exists ... attached patch will search for /dev/input/js# first
> > and if that doesnt exist, fall back to /dev/js#
> You could easily maintain compatibility with Wine and any other
> application using joysticks simply by adding some symlinks in /dev.
> That's what my system has, and it's using udev.

i know i could tell users to have their udev configuration generate backwards 
compatible symlinks and this issue would be "fixed" magically, but 
considering /dev/input/js is the new standard, it makes sense to me to 
support it, especially since this way things will generally "just work" ... 
other major source projects like libsdl had no qualms 
supporting /dev/input/js as well as /dev/js

More information about the wine-devel mailing list