X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;ds=sidebyside;f=src%2Ffreeglut_joystick.c;h=046e62fd49a0765c0df0114894173e9e1763aca2;hb=9807c5fdb2f20f098c7046786908a7f3ce1dc2d4;hp=3a1e32596f266832623739e35f0e9bf56acf3e6a;hpb=585c48d614d2b7e22c18fb1ee998a303f9e7fdf3;p=freeglut diff --git a/src/freeglut_joystick.c b/src/freeglut_joystick.c index 3a1e325..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 @@ -60,7 +63,6 @@ # define _JS_MAX_AXES 8 # include # include -# include # include #endif @@ -73,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