Code: Select all
if(mouse_control_on || (numSticks && !keyboardPitchOverride))
{
double stick_pitch = max_flight_pitch * virtualStick.y; // <<<<<<<<<< - Change this line
if (flightPitch < stick_pitch)
{
[self increase_flight_pitch:delta_t*roll_delta];
if (flightPitch > stick_pitch)
flightPitch = stick_pitch;
}
if (flightPitch > stick_pitch)
{
[self decrease_flight_pitch:delta_t*roll_delta];
if (flightPitch < stick_pitch)
flightPitch = stick_pitch;
}
pitching = (fabs(virtualStick.y) >= deadzone);
}
Code: Select all
double stick_pitch = max_flight_pitch * virtualStick.y;
Code: Select all
double stick_pitch = - max_flight_pitch * virtualStick.y;
Ideally, this would be a game option or a defaults file setting to YES/NO, but the above should be good enough for those who can't stand the standard flight-sim way of mouse handling.