From f1c19bb9c5afd57fc97fa3164979d6d526d90111 Mon Sep 17 00:00:00 2001 From: Don Heyse Date: Thu, 19 Jun 2003 20:51:48 +0000 Subject: [PATCH] Oops, missed the fghJoystickRawRead() fix for FreeBSD. git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@87 7f0cb862-5218-0410-a997-914c9d46530a --- freeglut-1.3/freeglut_joystick.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ); -- 1.7.10.4