Fixed compile errors on various platforms

This commit is contained in:
Sam Lantinga
2016-12-22 18:43:00 -07:00
parent ca019dada5
commit ad26769cd7
4 changed files with 6 additions and 4 deletions

View File

@@ -516,7 +516,7 @@ SDL_SYS_MFIJoystickUpdate(SDL_Joystick * joystick)
* initializes its values to 0. We only want to make sure the
* player index is up to date if the user actually moves an axis. */
if ((i != 2 && i != 5) || axes[i] != -32768) {
updateplayerindex |= (joystick->axes[i] != axes[i]);
updateplayerindex |= (joystick->axes[i].value != axes[i]);
}
SDL_PrivateJoystickAxis(joystick, i, axes[i]);
}