CMEYE mode updater.
StickInput = ctrlGetControlInput();
ThrottleSqr = StickInput->Axis[jsAXIS_THROTTLE_1].Unsigned *
StickInput->Axis[jsAXIS_THROTTLE_1].Unsigned;
ThrottleSqr *= ThrottleSqr;
Speed = maMPH_TO_FPS(50000) * ThrottleSqr;
if(MoveRev)
{
Speed = -Speed;
}
//if(StickInput->Descrites[0])
if(MoveMap)
{
PosRate.x = Speed * StickInput->Axis[jsAXIS_ROLL].Signed;
PosRate.y = 0;
PosRate.z = Speed * -StickInput->Axis[jsAXIS_PITCH].Signed;
Att.Roll = 0;
Att.Pitch = -madDEG(90);
Att.Yaw = 0;
simSetAttitude(Sim,&Att);
simAdvancePosition(Sim,&PosRate,TimeInc);
}
else
{
AttRate.Pitch = madDEG(180) * StickInput->Axis[jsAXIS_PITCH].Signed;
AttRate.Roll = madDEG(180) * StickInput->Axis[jsAXIS_ROLL].Signed;
AttRate.Yaw = madDEG(180) * StickInput->Axis[jsAXIS_YAW].Signed;
simAdvanceAttitude(Sim,&AttRate,TimeInc);
PosRate.x = 0;
PosRate.y = 0;
PosRate.z = Speed;
maROT_POINT(RotRate,PosRate,Sim->CurrentAtt.Matrix);
simAdvancePosition(Sim,&RotRate,TimeInc);
}