Exemplo n.º 1
0
    void OnGUI()
    {
        string str = "Capture Rate=" + FPS;

        str += "\nLeft Eye:" + LeftEyePos.ToString();
        str += "\nRight Eye:" + RightEyePos.ToString();
        GUI.TextArea(new Rect(0, 0, 200, 50), str);
    }
Exemplo n.º 2
0
    void OnGUI()
    {
        string str = "Capture Rate=" + FPS;

        str += "\t\nEye[0] FPS=" + _eyeFps[0].FPS();
        str += "\t\nEye[1] FPS=" + _eyeFps[1].FPS();
        str += "\nLeft Eye:" + LeftEyePos.ToString();
        str += "\nRight Eye:" + RightEyePos.ToString();
        GUI.TextArea(new Rect(0, 0, 200, 80), str);
    }
Exemplo n.º 3
0
    void OnGUI()
    {
        string str = "Capture Rate=" + FPS;

        if (m_status == EStatus.Calibration)
        {
            str += "\t\nCalibration Samples=" + _currCalibSamples;
        }
        else
        {
            str += "\t\nEye[0] FPS=" + _eyeFps [0].FPS();
            str += "\t\nEye[1] FPS=" + _eyeFps [1].FPS();
        }
        str += "\nLeft Eye:" + LeftEyePos.ToString();
        str += "\nRight Eye:" + RightEyePos.ToString();
        GUI.TextArea(new Rect(0, 0, 200, 80), str);
    }
Exemplo n.º 4
0
    public string GetDebugString()
    {
        string str = "Eye Tracker:";

        str += "\tCapture Rate=" + FPS;
        if (m_status == EStatus.Calibration)
        {
            str += "\n\tCalibration Samples=" + _currCalibSamples;
        }
        else
        {
            str += "\n\tEye[0] FPS=" + _eyeFps[0].FPS();
            str += "\n\tEye[1] FPS=" + _eyeFps[1].FPS();
        }
        str += "\n\tLeft Eye:" + LeftEyePos.ToString();
        str += "\n\tRight Eye:" + RightEyePos.ToString();
        return(str);
    }