SDL 1.3 FreeBSD 8.x+ USB jostick patch

Hi,

find attached a joystick patch for the USB stack rewrite on FreeBSD 8.x and
newer. The patch can be utilised for SDL 1.2 as well.
Unfortunately my jostick broke while testing, so there might be
dragons hidden, which I have fight later on.

@Ryan: usb_ctl_report has been removed after the USB stack rewrite in
FreeBSD 8. The patch utilises the usb_gen_descriptor struct
instead.

Regarding the question who introduced the usb_ctl_report definition, it
was introduced by the FreeBSD port maintainer(s) after the USB stack
rewrite and found its way into the SDL upstream repo:

http://www.freebsd.org/cgi/cvsweb.cgi/ports/devel/sdl12/files/patch-src_joystick_bsd_SDL_sysjoystick.c?rev=1.2;content-type=text%2Fplain

Regards
Marcus
-------------- next part --------------
A non-text attachment was scrubbed…
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20111115/b100694a/attachment.pgp

On, Tue Nov 15, 2011, Marcus von Appen wrote:

[…]

And here’s the patch…

-------------- next part --------------
A non-text attachment was scrubbed…
Name: freebsd_usb_rewrite.patch
Type: text/x-diff
Size: 1541 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20111115/4e53247e/attachment.patch
-------------- next part --------------
A non-text attachment was scrubbed…
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20111115/4e53247e/attachment.pgp