This patch improves support for the Xbox 360 controller
in xpad.c and xpad.h. Several things have been added
or modified including:
* Formatting changes (changed Xbox360 to Xbox 360, vim
modelines)
* Removed extra axes and buttons not on xbox 360 pad
* fixed xpad_table to detect xbox 360 pad properly
* swapped x and y buttons
* removed flipping of y axis on right stick (unnecessary)
* tunned default calibration settings for xbox 360 pad
so that triggers
start at 0 (not -32767) and axis range is much better.
* Added code to turn of xbox 360 pad leds when the pad
is initialized
(so they don't just flash)
This has been tested, but I am new to this kind of
thing. Please review the patch before commiting. I
really don't know if my xpad_irq_out callback is done
correctly.
I think that I can impliment rumble support for the pad
as well, but before I do that I need to know what the
current status of rumble support in the driver is.
The current patch has a few known, bugs but should work
until you unplug and replug the controller a few times.
Buggy xpad patch aganist 2.6.15