From 63f212e2f8143b6220b755abc12cf76e77a75aed Mon Sep 17 00:00:00 2001 From: "John F. Fay" Date: Fri, 29 Apr 2005 13:35:06 +0000 Subject: [PATCH] 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 --- src/freeglut_joystick.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- 1.7.10.4