Пример #1
0
 public override void SendInput(Ds4InputMessage input)
 {
     SetValueIfNeeded(DualShock4Button.Circle, input.Circle);
     SetValueIfNeeded(DualShock4Button.Cross, input.Cross);
     SetValueIfNeeded(DualShock4Button.Triangle, input.Triangle);
     SetValueIfNeeded(DualShock4Button.Square, input.Square);
     SetValueIfNeeded(DualShock4Button.ShoulderLeft, input.L1);
     SetValueIfNeeded(DualShock4Button.ShoulderRight, input.R1);
     SetValueIfNeeded(DualShock4Button.ThumbLeft, input.L3);
     SetValueIfNeeded(DualShock4Button.ThumbRight, input.R3);
     SetValueIfNeeded(DualShock4Button.Share, input.Share);
     SetValueIfNeeded(DualShock4Button.Options, input.Options);
     SetValueIfNeeded(DualShock4SpecialButton.Ps, input.Ps);
     SetValueIfNeeded(DualShock4Axis.LeftThumbX, input.LX);
     SetValueIfNeeded(DualShock4Axis.LeftThumbY, input.LY);
     SetValueIfNeeded(DualShock4Axis.RightThumbX, input.RX);
     SetValueIfNeeded(DualShock4Axis.RightThumbY, input.RY);
     SetValueIfNeeded(DualShock4Slider.LeftTrigger, input.L2);
     SetValueIfNeeded(DualShock4Slider.RightTrigger, input.R2);
     SetDPadIfNeeded(input.UP, input.DOWN, input.LEFT, input.RIGHT);
     controller.SubmitReport();
 }
Пример #2
0
 public abstract void SendInput(Ds4InputMessage input);