X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=freeglut-1.3%2Ffreeglut_joystick.c;h=a47d4910e4d40482a7f462e916ec03dd12a79b8b;hb=fd025d3915f90c5af286ade32f25a0922644b177;hp=7ac4c3d50c271e584d31071acb9cdefcc2f0d8f3;hpb=4ac1ea787d86ca1e4faf1c86df89df3264d2023d;p=freeglut diff --git a/freeglut-1.3/freeglut_joystick.c b/freeglut-1.3/freeglut_joystick.c index 7ac4c3d..a47d491 100644 --- a/freeglut-1.3/freeglut_joystick.c +++ b/freeglut-1.3/freeglut_joystick.c @@ -408,7 +408,7 @@ static void fghJoystickOpen( SFG_Joystick* joy ) return; # ifdef __FreeBSD__ - fghJoystickRawRead( buttons, axes ); + fghJoystickRawRead(joy, buttons, axes ); joy->error = axes[ 0 ] < -1000000000.0f; if( joy->error ) return ; @@ -462,7 +462,7 @@ static void fghJoystickOpen( SFG_Joystick* joy ) do { - fghJoystickRawRead( joy, NULL, joy->center ) + fghJoystickRawRead( joy, NULL, joy->center ); counter++; } while( !joy->error && counter < 100 && joy->center[ 0 ] == 512.0f && joy->center[ 1 ] == 512.0f );