src/joystick/iphoneos/SDL_sysjoystick.m
changeset 9902 a0d15db7bd09
parent 9879 8465a79c9f85
child 9908 b63158b01a7d
     1.1 --- a/src/joystick/iphoneos/SDL_sysjoystick.m	Thu Nov 05 18:10:19 2015 -0800
     1.2 +++ b/src/joystick/iphoneos/SDL_sysjoystick.m	Mon Nov 09 02:32:37 2015 -0400
     1.3 @@ -462,10 +462,10 @@
     1.4  
     1.5              /* Axis order matches the XInput Windows mappings. */
     1.6              SDL_PrivateJoystickAxis(joystick, 0, (Sint16) (gamepad.leftThumbstick.xAxis.value * 32767));
     1.7 -            SDL_PrivateJoystickAxis(joystick, 1, (Sint16) (gamepad.leftThumbstick.yAxis.value * 32767));
     1.8 +            SDL_PrivateJoystickAxis(joystick, 1, (Sint16) (gamepad.leftThumbstick.yAxis.value * -32767));
     1.9              SDL_PrivateJoystickAxis(joystick, 2, (Sint16) (gamepad.leftTrigger.value * 32767));
    1.10              SDL_PrivateJoystickAxis(joystick, 3, (Sint16) (gamepad.rightThumbstick.xAxis.value * 32767));
    1.11 -            SDL_PrivateJoystickAxis(joystick, 4, (Sint16) (gamepad.rightThumbstick.yAxis.value * 32767));
    1.12 +            SDL_PrivateJoystickAxis(joystick, 4, (Sint16) (gamepad.rightThumbstick.yAxis.value * -32767));
    1.13              SDL_PrivateJoystickAxis(joystick, 5, (Sint16) (gamepad.rightTrigger.value * 32767));
    1.14  
    1.15              hatstate = SDL_SYS_MFIJoystickHatStateForDPad(gamepad.dpad);