From 3e9284519a0eaee6759e6996df21577f3b42d7ff Mon Sep 17 00:00:00 2001 From: Philipp Wiesemann Date: Fri, 23 Dec 2016 20:36:24 +0100 Subject: [PATCH] Windows: Fixed compile error. --- src/joystick/windows/SDL_mmjoystick.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/joystick/windows/SDL_mmjoystick.c b/src/joystick/windows/SDL_mmjoystick.c index e61756121..5fb8fe157 100644 --- a/src/joystick/windows/SDL_mmjoystick.c +++ b/src/joystick/windows/SDL_mmjoystick.c @@ -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);