Ejemplo n.º 1
0
 public void TouchDown(MarshalledTouchEvent mTouch)
 {
     fingerId = mTouch.ID;
     phase = Win8TouchPhase.Began;
     position = new Vector2(mTouch.x, (Screen.height - mTouch.y + PIXEL_Y_CORRECTION));
     _previousPosition = position;
     touchTime = Time.time;
     _previousTouchTime = touchTime;
 }
Ejemplo n.º 2
0
    void TouchUp(MarshalledTouchEvent mTouch)
    {
        Win8Touch touch = GetActiveTouchByID(mTouch.ID);

        if (touch == null)
            return;

        touch.TouchUp(mTouch);
    }
Ejemplo n.º 3
0
    void TouchMove(MarshalledTouchEvent mTouch)
    {
        Win8Touch touch = GetActiveTouchByID(mTouch.ID);

        if (touch == null || touch.phase == Win8TouchPhase.Began)
            return;

        touch.TouchMove(mTouch);
    }
Ejemplo n.º 4
0
 void TouchDown(MarshalledTouchEvent nativetouch)
 {
     Win8Touch touch = GetInactiveTouch();
     touch.TouchDown(nativetouch);
 }
Ejemplo n.º 5
0
 public void TouchUp(MarshalledTouchEvent mTouch)
 {
     phase = Win8TouchPhase.Ended;
     position = new Vector2(mTouch.x, (Screen.height - mTouch.y + PIXEL_Y_CORRECTION));
     touchTime = Time.time;
 }