Windows: Fixed compile error.

This commit is contained in:
Philipp Wiesemann 2016-12-23 20:36:24 +01:00
parent 7c60a638b0
commit 3e9284519a
1 changed files with 1 additions and 1 deletions

View File

@ -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);