X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Ffreeglut_joystick.c;h=046e62fd49a0765c0df0114894173e9e1763aca2;hb=63f212e2f8143b6220b755abc12cf76e77a75aed;hp=080b71fb079da301e258f73097c3dd53aa9cb8c7;hpb=d6ef179628c92d5a8e0abdd0c747de8f76ba1fde;p=freeglut diff --git a/src/freeglut_joystick.c b/src/freeglut_joystick.c index 080b71f..046e62f 100644 --- a/src/freeglut_joystick.c +++ b/src/freeglut_joystick.c @@ -41,8 +41,11 @@ * Initial defines from "js.h" starting around line 33 with the existing "freeglut_joystick.c" * interspersed */ -#define _JS_MAX_BUTTONS 32 +/* XXX It might be better to poll the operating system for the numbers of buttons and + * XXX axes and then dynamically allocate the arrays. + */ +#define _JS_MAX_BUTTONS 32 #if TARGET_HOST_MACINTOSH # define _JS_MAX_AXES 9 @@ -72,9 +75,7 @@ # if HAVE_FCNTL_H # include # endif -# if HAVE_ERRNO_H -# include -# endif +# include # if defined(__FreeBSD__) || defined(__NetBSD__) /* XXX The below hack is done until freeglut's autoconf is updated. */ # define HAVE_USB_JS 1