I have this usb keyboard which uses 3 uhid devices nodes, leaving only one left
for SDL to use (SDL has a hardcoded limit of 4 usb devices).

Let's bump this. Tested using emulators/dgen. OK?

Index: Makefile
===================================================================
RCS file: /cvs/ports/devel/sdl/Makefile,v
retrieving revision 1.85
diff -u -p -r1.85 Makefile
--- Makefile    29 Mar 2012 13:38:30 -0000      1.85
+++ Makefile    15 May 2012 16:02:41 -0000
@@ -5,7 +5,7 @@ COMMENT=        cross-platform multimedia libra
 VERSION=       1.2.15
 DISTNAME=      SDL-${VERSION}
 PKGNAME=       ${DISTNAME:L}
-REVISION=      1
+REVISION=      2
 CATEGORIES=    devel
 MASTER_SITES=  ${HOMEPAGE}release/
 
Index: patches/patch-src_joystick_bsd_SDL_sysjoystick_c
===================================================================
RCS file: patches/patch-src_joystick_bsd_SDL_sysjoystick_c
diff -N patches/patch-src_joystick_bsd_SDL_sysjoystick_c
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-src_joystick_bsd_SDL_sysjoystick_c    15 May 2012 16:02:41 
-0000
@@ -0,0 +1,15 @@
+$OpenBSD$
+
+It is easy to exhaust uhid devices in this day and age.
+
+--- src/joystick/bsd/SDL_sysjoystick.c.orig    Tue May 15 17:09:10 2012
++++ src/joystick/bsd/SDL_sysjoystick.c Tue May 15 17:09:29 2012
+@@ -77,7 +77,7 @@
+ #include "../SDL_sysjoystick.h"
+ #include "../SDL_joystick_c.h"
+ 
+-#define MAX_UHID_JOYS 4
++#define MAX_UHID_JOYS 16
+ #define MAX_JOY_JOYS  2
+ #define MAX_JOYS      (MAX_UHID_JOYS + MAX_JOY_JOYS)
+ 
-- 
Best Regards
Edd Barrett

http://www.theunixzoo.co.uk

Reply via email to