[patch] SDL1.2/1.3 fix for PS3 SixAxis and other joysticks

The Linux joystick driver enumerates all axes up to ABS_MISC but
accepts input for all axes up to ABS_MAX. This causes all axes after
ABS_MISC to be remapped to axis 0, because the abs_map table is
initialised to zero. In practice this makes joysticks such as the PS3
SixAxis gamepad almost unusable.

As a simple fix I suggest replacing ABS_MISC with ABS_MAX around line
705 in src/joystick/linux/SDL_sysjoystick.c so that all axes including
the accelerometer ones are available.

-------------- next part --------------
A non-text attachment was scrubbed…
Name: patch-sdl-misc-joystick-axes.diff
Type: text/x-diff
Size: 464 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20120517/0484d54a/attachment.diff