Exemplo n.º 1
0
    public void update()
    {
        // reset our state
        leftDown = upDown = rightDown = attackDown = jumpDown = false;

        // first update our touches then use our recognizers to set our state
        TouchKit.updateTouches();

        leftDown  = _leftRecognizer.state == TKGestureRecognizerState.RecognizedAndStillRecognizing;
        rightDown = _rightRecognizer.state == TKGestureRecognizerState.RecognizedAndStillRecognizing;
        upDown    = _upRecognizer.state == TKGestureRecognizerState.RecognizedAndStillRecognizing;

        jumpDown = _jumpRecognizer.state == TKGestureRecognizerState.RecognizedAndStillRecognizing;
    }