Exemplo n.º 1
0
        // ---------------------
        public TouchTrackPad() : base()
        {
            this.touchSmoothing = 0.5f;
            this.touchState     = new TouchGestureBasicState();

            this.pressBinding     = new DigitalBinding();
            this.horzSwipeBinding = new AxisBinding("Mouse X", false);
            this.vertSwipeBinding = new AxisBinding("Mouse Y", false);
        }
Exemplo n.º 2
0
 // -----------------
 public DynamicTouchControl() : base()
 {
     this.touchStateScreen      = new TouchGestureBasicState();
     this.touchStateWorld       = new TouchGestureBasicState();
     this.touchStateOriented    = new TouchGestureBasicState();
     this.directInitialVector   = Vector2.zero;
     this.indirectInitialVector = Vector2.zero;
     this.startFadedOut         = true;
     this.fadeOutWhenReleased   = true;
     this.touchSmoothing        = 0.1f;
 }