示例#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);
示例#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);
示例#3
0
 public virtual double GetTriggerAxis(JoystickHand hand) => GetRawAxis(hand == JoystickHand.Left ? 2 : 3);
示例#4
0
 public abstract double GetY(JoystickHand hand);
示例#5
0
 public override bool GetBumper(JoystickHand hand) => GetRawButton(hand == JoystickHand.Left ? 5 : 6);
示例#6
0
 public override bool GetStickButton(JoystickHand hand) => GetRawButton(hand == JoystickHand.Left ? 9 : 10);
示例#7
0
 public override double GetX(JoystickHand hand) => GetRawAxis(hand == JoystickHand.Left ? 0 : 4);
示例#8
0
 public override double GetY(JoystickHand hand) => GetRawAxis(hand == JoystickHand.Left ? 1 : 5);
示例#9
0
 public abstract bool GetTop(JoystickHand hand);
示例#10
0
 public abstract bool GetTrigger(JoystickHand hand);
示例#11
0
 public override bool GetTop(JoystickHand hand) => this[ButtonType.Top];
示例#12
0
 public override bool GetTrigger(JoystickHand hand) => this[ButtonType.Trigger];
示例#13
0
 public override double GetZ(JoystickHand hand) => this[AxisType.Z];