Esempio n. 1
0
 public override void Update(
     InputKeyboardComponent inputKeyboard,
     InputMouseComponent inputMouse,
     InputTouchComponent inputTouch,
     InputGamePadComponent inputGamePad)
 {
     this.Value = Mathf.SignThreshold(inputGamePad.GetLeftStick(this.Deadzone).X, this.Deadzone);
 }
Esempio n. 2
0
            public override void Update(
                InputKeyboardComponent inputKeyboard,
                InputMouseComponent inputMouse,
                InputTouchComponent inputTouch,
                InputGamePadComponent inputGamePad)
            {
                var value = inputGamePad.GetLeftStick(this.Deadzone);

                this.ValueX = value.X;
                this.ValueY = value.Y;
            }
Esempio n. 3
0
            public override void Update(
                InputKeyboardComponent inputKeyboard,
                InputMouseComponent inputMouse,
                InputTouchComponent inputTouch,
                InputGamePadComponent inputGamePad)
            {
                var multiplier = this.InvertResult ? -1 : 1;

                this.Value = multiplier * Mathf.SignThreshold(
                    inputGamePad.GetLeftStick(this.Deadzone).Y,
                    this.Deadzone);
            }