projects
/
freeglut
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
(98) src/Makefile.am:34 Added mwmborder.c
[freeglut]
/
freeglut-1.3
/
freeglut_joystick.c
diff --git
a/freeglut-1.3/freeglut_joystick.c
b/freeglut-1.3/freeglut_joystick.c
index
7ac4c3d
..
a47d491
100644
(file)
--- 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__
return;
# ifdef __FreeBSD__
- fghJoystickRawRead( buttons, axes );
+ fghJoystickRawRead(joy, buttons, axes );
joy->error = axes[ 0 ] < -1000000000.0f;
if( joy->error )
return ;
joy->error = axes[ 0 ] < -1000000000.0f;
if( joy->error )
return ;
@@
-462,7
+462,7
@@
static void fghJoystickOpen( SFG_Joystick* joy )
do
{
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 );
counter++;
} while( !joy->error && counter < 100 && joy->center[ 0 ] == 512.0f && joy->center[ 1 ] == 512.0f );