Ejemplo n.º 1
0
        public ScriptBase Press(DualShockState state, int delay = DEFAULT_PRESS_BUTTONS_DELAY)
        {
            SetButtons(state);
            Host.Sleep(delay);
            ClearButtons();

            return(this);
        }
Ejemplo n.º 2
0
 public void CopyTo(DualShockState state)
 {
     state.ReportTimeStamp = ReportTimeStamp;
     state.LX                 = LX;
     state.LY                 = LY;
     state.RX                 = RX;
     state.RY                 = RY;
     state.L2                 = L2;
     state.R2                 = R2;
     state.Triangle           = Triangle;
     state.Circle             = Circle;
     state.Cross              = Cross;
     state.Square             = Square;
     state.DPad_Up            = DPad_Up;
     state.DPad_Down          = DPad_Down;
     state.DPad_Left          = DPad_Left;
     state.DPad_Right         = DPad_Right;
     state.L1                 = L1;
     state.R3                 = R3;
     state.Share              = Share;
     state.Options            = Options;
     state.R1                 = R1;
     state.L3                 = L3;
     state.PS                 = PS;
     state.Touch1             = Touch1.Clone();
     state.Touch2             = Touch2.Clone();
     state.TouchButton        = TouchButton;
     state.TouchPacketCounter = TouchPacketCounter;
     state.FrameCounter       = FrameCounter;
     state.Battery            = Battery;
     state.IsCharging         = IsCharging;
     state.AccelX             = AccelX;
     state.AccelY             = AccelY;
     state.AccelZ             = AccelZ;
     state.GyroX              = GyroX;
     state.GyroY              = GyroY;
     state.GyroZ              = GyroZ;
 }
Ejemplo n.º 3
0
 public DualShockState(DualShockState state)
 {
     ReportTimeStamp = state.ReportTimeStamp;
     LX                 = state.LX;
     LY                 = state.LY;
     RX                 = state.RX;
     RY                 = state.RY;
     L2                 = state.L2;
     R2                 = state.R2;
     Triangle           = state.Triangle;
     Circle             = state.Circle;
     Cross              = state.Cross;
     Square             = state.Square;
     DPad_Up            = state.DPad_Up;
     DPad_Down          = state.DPad_Down;
     DPad_Left          = state.DPad_Left;
     DPad_Right         = state.DPad_Right;
     L1                 = state.L1;
     R3                 = state.R3;
     Share              = state.Share;
     Options            = state.Options;
     R1                 = state.R1;
     L3                 = state.L3;
     PS                 = state.PS;
     Touch1             = state.Touch1.Clone();
     Touch2             = state.Touch2.Clone();
     TouchButton        = state.TouchButton;
     TouchPacketCounter = state.TouchPacketCounter;
     FrameCounter       = state.FrameCounter;
     Battery            = state.Battery;
     IsCharging         = state.IsCharging;
     AccelX             = state.AccelX;
     AccelY             = state.AccelY;
     AccelZ             = state.AccelZ;
     GyroX              = state.GyroX;
     GyroY              = state.GyroY;
     GyroZ              = state.GyroZ;
 }
Ejemplo n.º 4
0
 public ScriptBase SetButtons(DualShockState state)
 {
     CurrentState = state;
     return(this);
 }