Fixed Y axis inversion on iOS; positive is up, negative is down.

This commit is contained in:
Sam Lantinga 2013-10-20 22:23:09 -07:00
parent 44dbed38ac
commit d3ebd00978
2 changed files with 12 additions and 9 deletions

View file

@ -106,7 +106,7 @@ SDL_SYS_JoystickUpdate(SDL_Joystick * joystick)
[[SDLUIAccelerationDelegate sharedDelegate] setHasNewData: NO];
SDL_PrivateJoystickAxis(joystick, 0, orientation[0]);
SDL_PrivateJoystickAxis(joystick, 1, orientation[1]);
SDL_PrivateJoystickAxis(joystick, 1, -orientation[1]);
SDL_PrivateJoystickAxis(joystick, 2, orientation[2]);
}