Bump the maximum number of uhid devices SDL can address from 4 to 16. It is
quite easy to exhaust the SDL default of 4. OK jasper@
This commit is contained in:
parent
f7d38c649a
commit
f1121baa4f
@ -1,11 +1,11 @@
|
||||
# $OpenBSD: Makefile,v 1.85 2012/03/29 13:38:30 sthen Exp $
|
||||
# $OpenBSD: Makefile,v 1.86 2012/05/16 14:01:19 edd Exp $
|
||||
|
||||
COMMENT= cross-platform multimedia library
|
||||
|
||||
VERSION= 1.2.15
|
||||
DISTNAME= SDL-${VERSION}
|
||||
PKGNAME= ${DISTNAME:L}
|
||||
REVISION= 1
|
||||
REVISION= 2
|
||||
CATEGORIES= devel
|
||||
MASTER_SITES= ${HOMEPAGE}release/
|
||||
|
||||
|
15
devel/sdl/patches/patch-src_joystick_bsd_SDL_sysjoystick_c
Normal file
15
devel/sdl/patches/patch-src_joystick_bsd_SDL_sysjoystick_c
Normal file
@ -0,0 +1,15 @@
|
||||
$OpenBSD: patch-src_joystick_bsd_SDL_sysjoystick_c,v 1.11 2012/05/16 14:01:19 edd Exp $
|
||||
|
||||
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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user