From def83e15e947d0923bbac33a445975a64b0104b9 Mon Sep 17 00:00:00 2001 From: nigels Date: Wed, 3 Mar 2004 03:35:42 +0000 Subject: [PATCH] According to John F. Fay: The variable "num_axes" should be "joy->num_axes". git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@469 7f0cb862-5218-0410-a997-914c9d46530a --- freeglut/freeglut/src/freeglut_joystick.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freeglut/freeglut/src/freeglut_joystick.c b/freeglut/freeglut/src/freeglut_joystick.c index 6bdccf5..042563f 100644 --- a/freeglut/freeglut/src/freeglut_joystick.c +++ b/freeglut/freeglut/src/freeglut_joystick.c @@ -738,7 +738,7 @@ static void fghJoystickRawRead( SFG_Joystick* joy, int* buttons, float* axes ) if ( buttons != NULL ) *buttons = joy->tmp_buttons; if ( axes != NULL ) - memcpy ( axes, joy->tmp_axes, sizeof(float) * num_axes ); + memcpy ( axes, joy->tmp_axes, sizeof(float) * joy->num_axes ); return; }