src/joystick/iphoneos/SDL_sysjoystick.m
changeset 10873 8754e496e7b2
parent 10737 3406a0f8b041
child 11284 3db78361e751
equal deleted inserted replaced
10872:414ace708a6a 10873:8754e496e7b2
   551                 (Sint16) (gamepad.dpad.xAxis.value * 32767),
   551                 (Sint16) (gamepad.dpad.xAxis.value * 32767),
   552                 (Sint16) (gamepad.dpad.yAxis.value * -32767),
   552                 (Sint16) (gamepad.dpad.yAxis.value * -32767),
   553             };
   553             };
   554 
   554 
   555             for (i = 0; i < SDL_arraysize(axes); i++) {
   555             for (i = 0; i < SDL_arraysize(axes); i++) {
   556                 updateplayerindex |= (joystick->axes[i] != axes[i]);
   556                 updateplayerindex |= (joystick->axes[i].value != axes[i]);
   557                 SDL_PrivateJoystickAxis(joystick, i, axes[i]);
   557                 SDL_PrivateJoystickAxis(joystick, i, axes[i]);
   558             }
   558             }
   559 
   559 
   560             /* Apparently the dpad values are not accurate enough to be useful. */
   560             /* Apparently the dpad values are not accurate enough to be useful. */
   561             /* hatstate = SDL_SYS_MFIJoystickHatStateForDPad(gamepad.dpad); */
   561             /* hatstate = SDL_SYS_MFIJoystickHatStateForDPad(gamepad.dpad); */