From 8aec061d3b95db47e642b8ac74607465bcb8dec3 Mon Sep 17 00:00:00 2001 From: Nigel Stewart 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: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@469 7f0cb862-5218-0410-a997-914c9d46530a --- src/freeglut_joystick.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/freeglut_joystick.c b/src/freeglut_joystick.c index 6bdccf5..042563f 100644 --- a/src/freeglut_joystick.c +++ b/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; } -- 1.7.10.4