USB Joystick/gamepad driver
ElBarto
elbarto at arcadebsd.org
Tue Dec 9 13:46:10 PST 2008
Hello all,
I've started a driver for usb joystick and gamepad.
The goal of this driver is to have a complete support for HID and
non-HID device.
For now it support HID device and (partially) the Xbox360 gamepad.
The driver create a ujoy%d device in /dev .
For now the data are like this :
AXIS_X AXIS_Y AXIS_Z AXIS_RX AXIS_RY AXIS_RZ SLIDER HAT_SWITCH BUTTONS
All coded in one int each.
I'll next add some ioctl to, for example, find which axis is present for
the joystick etc ....
There is of course no userland application which support this driver,
I'm planning to re-do the sdl support
for this driver, but before I want to standardize the driver.
You can download the driver and a small crappy userland application here :
http://www.arcadebsd.org/~elbarto/ujoy.tgz
This has been tested on FreeBSD 7.0 with two different Thrustmaster
gamepad and a Xbox360 one.
Comments ? Suggestions ?
--
Emmanuel Vadot
elbarto at arcadebsd.org
More information about the freebsd-drivers
mailing list