Beispiel #1
0
 public void Purge()
 {
     Device        = null;
     CurrentState  = null;
     PreviousState = null;
     ExposedState  = null;
 }
Beispiel #2
0
        public DS4Controller(DS4Device device)
        {
            Device = device;

            CurrentState  = new DS4State();
            PreviousState = new DS4State();
            ExposedState  = new DS4StateExposed(CurrentState);

            Device.Removal -= DS4Devices.On_Removal;
            Device.Removal += OnControllerRemoval;
            Device.Removal += DS4Devices.On_Removal;

            Device.Report += OnControllerReport;
            Device.Touchpad.TouchesMoved += OnControllerTouchPadMoved;
        }
Beispiel #3
0
 public void getExposedState(DS4StateExposed expState, DS4State state)
 {
     cState.CopyTo(state);
     expState.Accel = accel;
     expState.Gyro  = gyro;
 }