예제 #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;
 }
예제 #2
0
    void TouchUp(MarshalledTouchEvent mTouch)
    {
        Win8Touch touch = GetActiveTouchByID(mTouch.ID);

        if (touch == null)
            return;

        touch.TouchUp(mTouch);
    }
예제 #3
0
    void TouchMove(MarshalledTouchEvent mTouch)
    {
        Win8Touch touch = GetActiveTouchByID(mTouch.ID);

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

        touch.TouchMove(mTouch);
    }
예제 #4
0
 void TouchDown(MarshalledTouchEvent nativetouch)
 {
     Win8Touch touch = GetInactiveTouch();
     touch.TouchDown(nativetouch);
 }
예제 #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;
 }