Browse Source

Windows: Fixed compile error.

Philipp Wiesemann 8 years ago
parent
commit
3e9284519a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/joystick/windows/SDL_mmjoystick.c

+ 1 - 1
src/joystick/windows/SDL_mmjoystick.c

@@ -345,7 +345,7 @@ SDL_SYS_JoystickUpdate(SDL_Joystick * joystick)
             value =
             value =
                 (int) (((float) pos[i] +
                 (int) (((float) pos[i] +
                         transaxis[i].offset) * transaxis[i].scale);
                         transaxis[i].offset) * transaxis[i].scale);
-            change = (value - joystick->axes[i]);
+            change = (value - joystick->axes[i].value);
             if ((change < -JOY_AXIS_THRESHOLD)
             if ((change < -JOY_AXIS_THRESHOLD)
                 || (change > JOY_AXIS_THRESHOLD)) {
                 || (change > JOY_AXIS_THRESHOLD)) {
                 SDL_PrivateJoystickAxis(joystick, (Uint8) i, (Sint16) value);
                 SDL_PrivateJoystickAxis(joystick, (Uint8) i, (Sint16) value);