Exemplo n.º 1
0
 /// <summary>
 /// Gets if the bupper is pressed
 /// </summary>
 /// <param name="hand">The hand to check</param>
 /// <returns>True if the bumper is pressed</returns>
 public abstract bool GetBumper(JoystickHand hand);
Exemplo n.º 2
0
 /// <summary>
 /// Gets if the button on the stick is pressed
 /// </summary>
 /// <param name="hand">The hand to check</param>
 /// <returns>True if the button is pressed</returns>
 public abstract bool GetStickButton(JoystickHand hand);
Exemplo n.º 3
0
 public virtual double GetTriggerAxis(JoystickHand hand) => GetRawAxis(hand == JoystickHand.Left ? 2 : 3);
Exemplo n.º 4
0
 public abstract double GetY(JoystickHand hand);
Exemplo n.º 5
0
 public override bool GetBumper(JoystickHand hand) => GetRawButton(hand == JoystickHand.Left ? 5 : 6);
Exemplo n.º 6
0
 public override bool GetStickButton(JoystickHand hand) => GetRawButton(hand == JoystickHand.Left ? 9 : 10);
Exemplo n.º 7
0
 public override double GetX(JoystickHand hand) => GetRawAxis(hand == JoystickHand.Left ? 0 : 4);
Exemplo n.º 8
0
 public override double GetY(JoystickHand hand) => GetRawAxis(hand == JoystickHand.Left ? 1 : 5);
Exemplo n.º 9
0
 public abstract bool GetTop(JoystickHand hand);
Exemplo n.º 10
0
 public abstract bool GetTrigger(JoystickHand hand);
Exemplo n.º 11
0
 public override bool GetTop(JoystickHand hand) => this[ButtonType.Top];
Exemplo n.º 12
0
 public override bool GetTrigger(JoystickHand hand) => this[ButtonType.Trigger];
Exemplo n.º 13
0
 public override double GetZ(JoystickHand hand) => this[AxisType.Z];