src/joystick/iphoneos/SDL_sysjoystick.m
changeset 10714 a9c15922ad7b
parent 10617 346c02ff71b6
child 10737 3406a0f8b041
     1.1 --- a/src/joystick/iphoneos/SDL_sysjoystick.m	Thu Dec 22 17:33:45 2016 -0800
     1.2 +++ b/src/joystick/iphoneos/SDL_sysjoystick.m	Thu Dec 22 18:43:00 2016 -0700
     1.3 @@ -516,7 +516,7 @@
     1.4                   * initializes its values to 0. We only want to make sure the
     1.5                   * player index is up to date if the user actually moves an axis. */
     1.6                  if ((i != 2 && i != 5) || axes[i] != -32768) {
     1.7 -                    updateplayerindex |= (joystick->axes[i] != axes[i]);
     1.8 +                    updateplayerindex |= (joystick->axes[i].value != axes[i]);
     1.9                  }
    1.10                  SDL_PrivateJoystickAxis(joystick, i, axes[i]);
    1.11              }