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