Fixed bug 1561 - BSD joystick: Increase the number of uhid devices to scan
authorSam Lantinga <slouken@libsdl.org>
Fri, 24 Aug 2012 10:03:05 -0700
changeset 6401 a4bd9821a796
parent 6400 2ed5671bc5e0
child 6403 8d34c6248f4a
Fixed bug 1561 - BSD joystick: Increase the number of uhid devices to scan Brad Smith 2012-08-01 20:10:19 PDT The attached patch from the OpenBSD ports tree is to increase the number of uhid devices to scan for joysticks. It's somewhat easy to exhaust the default number of devices which are scanned.
src/joystick/bsd/SDL_sysjoystick.c
--- a/src/joystick/bsd/SDL_sysjoystick.c	Fri Aug 24 13:10:29 2012 -0300
+++ b/src/joystick/bsd/SDL_sysjoystick.c	Fri Aug 24 10:03:05 2012 -0700
@@ -76,7 +76,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)