Windows: Fixed compile error.
authorPhilipp Wiesemann <philipp.wiesemann@arcor.de>
Fri, 23 Dec 2016 20:36:24 +0100
changeset 1071773143fb45db3
parent 10716 c52451a283b5
child 10718 e5b39f4935c8
Windows: Fixed compile error.
src/joystick/windows/SDL_mmjoystick.c
     1.1 --- a/src/joystick/windows/SDL_mmjoystick.c	Fri Dec 23 20:36:12 2016 +0100
     1.2 +++ b/src/joystick/windows/SDL_mmjoystick.c	Fri Dec 23 20:36:24 2016 +0100
     1.3 @@ -345,7 +345,7 @@
     1.4              value =
     1.5                  (int) (((float) pos[i] +
     1.6                          transaxis[i].offset) * transaxis[i].scale);
     1.7 -            change = (value - joystick->axes[i]);
     1.8 +            change = (value - joystick->axes[i].value);
     1.9              if ((change < -JOY_AXIS_THRESHOLD)
    1.10                  || (change > JOY_AXIS_THRESHOLD)) {
    1.11                  SDL_PrivateJoystickAxis(joystick, (Uint8) i, (Sint16) value);