예제 #1
0
    // FormatCalibratingString
    void FormatCalibratingString(ref string str)
    {
        if (MagAutoCalibrate == true)
        {
            str = System.String.Format("Mag Calibrating (AUTO)... Point {0} set",
                                       OVRDeviceImposter.MagNumberOfSamples(0));
        }
        else
        {
            // Manual Calibration: Make sure to get proper direction
            str = "Mag Calibrating (MANUAL)... LOOK ";

            switch (OVRDeviceImposter.MagNumberOfSamples(0))
            {
            case (0): str += "FORWARD"; break;

            case (1): str += "UP"; break;

            case (2): str += "LEFT"; break;

            case (3): str += "RIGHT"; break;
            }
        }
    }