From: John F. Fay Date: Fri, 29 Apr 2005 13:35:06 +0000 (+0000) Subject: Adding a \"TODO\" comment about dynamically allocating joystick buttonj and axis... X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=commitdiff_plain;h=63f212e2f8143b6220b755abc12cf76e77a75aed;p=freeglut Adding a \"TODO\" comment about dynamically allocating joystick buttonj and axis arrays git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@590 7f0cb862-5218-0410-a997-914c9d46530a --- diff --git a/src/freeglut_joystick.c b/src/freeglut_joystick.c index 3c2fa9e..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