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
This commit is contained in:
nigels 2004-03-03 03:35:42 +00:00
parent 15c7f0ba24
commit def83e15e9

View File

@ -738,7 +738,7 @@ static void fghJoystickRawRead( SFG_Joystick* joy, int* buttons, float* axes )
if ( buttons != NULL ) *buttons = joy->tmp_buttons; if ( buttons != NULL ) *buttons = joy->tmp_buttons;
if ( axes != NULL ) if ( axes != NULL )
memcpy ( axes, joy->tmp_axes, sizeof(float) * num_axes ); memcpy ( axes, joy->tmp_axes, sizeof(float) * joy->num_axes );
return; return;
} }