ujoy(4) added to -current

With the following commit, Thomas Frohwein (thfr@) added a joystick/gamecontroller driver to -current:

CVSROOT:	/cvs
Module name:	src
Changes by:	thfr@cvs.openbsd.org	2021/01/22 22:08:36

Modified files:
	etc            : MAKEDEV.common 
	etc/etc.alpha  : MAKEDEV.md 
	etc/etc.amd64  : MAKEDEV.md 
[…]
	sys/dev/usb    : files.usb uhid.c uhid.h 
	sys/sys        : conf.h 
Added files:
	share/man/man4 : ujoy.4 
	sys/dev/usb    : ujoy.c 

Log message:
introduce ujoy(4), a restricted subset of uhid(4) for gamecontrollers.
This includes ujoy_hid_is_collection() to work around limitations of
hid_is_collection() until this can be combined without fallout.

input, testing with 8bitdo controller, and ok brynet@
PS4 controller testing, fix for hid_is_collection, and ok mglocker@

Read more…