Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 09 Dec 2008 22:29:21 +0100
From:      ElBarto <elbarto@arcadebsd.org>
To:        freebsd-drivers@freebsd.org
Subject:   USB Joystick/gamepad driver
Message-ID:  <493EE331.8070708@arcadebsd.org>

next in thread | raw e-mail | index | archive | help
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@arcadebsd.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?493EE331.8070708>