projects
/
freeglut
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
According to John F. Fay:
[freeglut]
/
src
/
freeglut_joystick.c
diff --git
a/src/freeglut_joystick.c
b/src/freeglut_joystick.c
index
6bdccf5
..
042563f
100644
(file)
--- 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;
}