Fixed compile errors on various platforms

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

View file

@ -197,7 +197,7 @@ extern "C"
/* Generate axis motion events */
for (i = 0; i < joystick->naxes; ++i) {
change = ((int32) axes[i] - joystick->axes[i]);
change = ((int32) axes[i] - joystick->axes[i].value);
if ((change > JITTER) || (change < -JITTER)) {
SDL_PrivateJoystickAxis(joystick, i, axes[i]);
}