flightgear, neverball, seemingly doomsday but it freezes on launchThis is an old revision of the document!
uhidd by-default does /dev/uvhid#, that can be symlinked to /dev/uhid# or be done automatically with uhidd -H uhiduhidd has a lot of flags in examples for keyboard/mouse/consumer, but a joystick only needs the virtual generic interface with uhidd -huhidd has to unbind whatever is on the joystick with uhidd -uuhidd takes control of the original /dev/input/event# device, if it had evdev or joystick forced through xorg.conf that driver gets unloaded according to Xorg.0.logdevd.conf rule below to automate thissu -
pkg install uhidd
uhidd -h -H 'uhid' -u '/dev/ugen0.6'
ugen match is required (works fine without it but might be safer on other USB stacks newer than usbhid)su -
pkg install uhidd
ee '/usr/local/etc/devd/sidewinder-joystick-uhidd.conf'
notify 0 {
        match "type" "ATTACH";
        match "ugen" "ugen[0-9]+.[0-9]+";
        match "vendor" "0x045e";
        match "product" "0x0008";
        action "env LD_PRELOAD=/usr/lib/libcuse.so /usr/local/sbin/uhidd -h -H uhid -u /dev/$ugen";
};