src/joystick/iphoneos/SDL_sysjoystick.m
changeset 10714 a9c15922ad7b
parent 10617 346c02ff71b6
child 10737 3406a0f8b041
equal deleted inserted replaced
10713:580fcf8605e3 10714:a9c15922ad7b
   514             for (i = 0; i < SDL_arraysize(axes); i++) {
   514             for (i = 0; i < SDL_arraysize(axes); i++) {
   515                 /* The triggers (axes 2 and 5) are resting at -32768 but SDL
   515                 /* The triggers (axes 2 and 5) are resting at -32768 but SDL
   516                  * initializes its values to 0. We only want to make sure the
   516                  * initializes its values to 0. We only want to make sure the
   517                  * player index is up to date if the user actually moves an axis. */
   517                  * player index is up to date if the user actually moves an axis. */
   518                 if ((i != 2 && i != 5) || axes[i] != -32768) {
   518                 if ((i != 2 && i != 5) || axes[i] != -32768) {
   519                     updateplayerindex |= (joystick->axes[i] != axes[i]);
   519                     updateplayerindex |= (joystick->axes[i].value != axes[i]);
   520                 }
   520                 }
   521                 SDL_PrivateJoystickAxis(joystick, i, axes[i]);
   521                 SDL_PrivateJoystickAxis(joystick, i, axes[i]);
   522             }
   522             }
   523 
   523 
   524             for (i = 0; i < SDL_arraysize(buttons); i++) {
   524             for (i = 0; i < SDL_arraysize(buttons); i++) {