Adding a \"TODO\" comment about dynamically allocating joystick buttonj and axis...
authorJohn F. Fay <johnffay@nettally.com>
Fri, 29 Apr 2005 13:35:06 +0000 (13:35 +0000)
committerJohn F. Fay <johnffay@nettally.com>
Fri, 29 Apr 2005 13:35:06 +0000 (13:35 +0000)
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@590 7f0cb862-5218-0410-a997-914c9d46530a

src/freeglut_joystick.c

index 3c2fa9e..046e62f 100644 (file)
  * 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