示例#1
0
    // Use this for initialization
    void Start()
    {
        eventQueue     = new ArrayList();
        eventQueueLock = new Object();
        activeEvents   = new Dictionary <long, ibheTuioEvent>(100);
        activeObjects  = new Dictionary <long, GameObject>(100);

        didChange = false;
        tuioInput = new ibheTuioConnector();
        tuioInput.collectEvents = true;
        //cameraPixelWidth = Camera.main.pixelWidth;
        //cameraPixelHeight = Camera.main.pixelHeight;
        cameraPixelWidth  = 13.33333333333333F;
        cameraPixelHeight = 10;
        Debug.Log("Screen Width: " + cameraPixelWidth + " Screen Height: " + cameraPixelHeight);
        xTCalib = 0.0F;
        yTCalib = 0.0F;
    }
示例#2
0
    // Use this for initialization
    void Start()
    {
        eventQueue = new ArrayList();
        eventQueueLock = new Object();
        activeEvents = new Dictionary<long,ibheTuioEvent>(100);
        activeObjects = new Dictionary<long, GameObject>(100);

        didChange = false;
        tuioInput = new ibheTuioConnector();
        tuioInput.collectEvents = true;
        //cameraPixelWidth = Camera.main.pixelWidth;
        //cameraPixelHeight = Camera.main.pixelHeight;
        cameraPixelWidth = 13.33333333333333F;
        cameraPixelHeight = 10;
        Debug.Log("Screen Width: " + cameraPixelWidth + " Screen Height: " + cameraPixelHeight);
        xTCalib = 0.0F;
        yTCalib = 0.0F;
    }