Fixed bug 1561 - BSD joystick: Increase the number of uhid devices to scan SDL-1.2
authorSam Lantinga <slouken@libsdl.org>
Fri, 24 Aug 2012 10:04:07 -0700
branchSDL-1.2
changeset 6402e786a4241cb5
parent 6396 b1c1b7ac4b39
child 6405 7b87c1773b3e
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
     1.1 --- a/src/joystick/bsd/SDL_sysjoystick.c	Wed Aug 15 02:52:42 2012 -0400
     1.2 +++ b/src/joystick/bsd/SDL_sysjoystick.c	Fri Aug 24 10:04:07 2012 -0700
     1.3 @@ -77,7 +77,7 @@
     1.4  #include "../SDL_sysjoystick.h"
     1.5  #include "../SDL_joystick_c.h"
     1.6  
     1.7 -#define MAX_UHID_JOYS	4
     1.8 +#define MAX_UHID_JOYS	16
     1.9  #define MAX_JOY_JOYS	2
    1.10  #define MAX_JOYS	(MAX_UHID_JOYS + MAX_JOY_JOYS)
    1.11