Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Windows: Fixed compile error.
  • Loading branch information
philippwiesemann committed Dec 23, 2016
1 parent 7c60a63 commit 3e92845
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/joystick/windows/SDL_mmjoystick.c
Expand Up @@ -345,7 +345,7 @@ SDL_SYS_JoystickUpdate(SDL_Joystick * joystick)
value =
(int) (((float) pos[i] +
transaxis[i].offset) * transaxis[i].scale);
change = (value - joystick->axes[i]);
change = (value - joystick->axes[i].value);
if ((change < -JOY_AXIS_THRESHOLD)
|| (change > JOY_AXIS_THRESHOLD)) {
SDL_PrivateJoystickAxis(joystick, (Uint8) i, (Sint16) value);
Expand Down

0 comments on commit 3e92845

Please sign in to comment.