public void CopyFrom(ControllerState other)
 {
     connectionState  = other.connectionState;
     apiStatus        = other.apiStatus;
     orientation      = other.orientation;
     gyro             = other.gyro;
     accel            = other.accel;
     isTouching       = other.isTouching;
     touchPos         = other.touchPos;
     touchDown        = other.touchDown;
     touchUp          = other.touchUp;
     recentered       = other.recentered;
     clickButtonState = other.clickButtonState;
     clickButtonDown  = other.clickButtonDown;
     clickButtonUp    = other.clickButtonUp;
     appButtonState   = other.appButtonState;
     appButtonDown    = other.appButtonDown;
     appButtonUp      = other.appButtonUp;
     homeButtonDown   = other.homeButtonDown;
     homeButtonUp     = other.homeButtonUp;
     homeButtonState  = other.homeButtonState;
     errorDetails     = other.errorDetails;
     gvrPtr           = other.gvrPtr;
     isCharging       = other.isCharging;
     batteryLevel     = other.batteryLevel;
 }
Beispiel #2
0
 public void CopyFrom(ControllerState other)
 {
     connectionState = other.connectionState;
     apiStatus       = other.apiStatus;
     orientation     = other.orientation;
     position        = other.position;
     gyro            = other.gyro;
     accel           = other.accel;
     touchPos        = other.touchPos;
     recentered      = other.recentered;
     buttonsState    = other.buttonsState;
     buttonsDown     = other.buttonsDown;
     buttonsUp       = other.buttonsUp;
     errorDetails    = other.errorDetails;
     gvrPtr          = other.gvrPtr;
     isCharging      = other.isCharging;
     batteryLevel    = other.batteryLevel;
 }
 public void CopyFrom(ControllerState other) {
   connectionState = other.connectionState;
   apiStatus = other.apiStatus;
   orientation = other.orientation;
   gyro = other.gyro;
   accel = other.accel;
   isTouching = other.isTouching;
   touchPos = other.touchPos;
   touchDown = other.touchDown;
   touchUp = other.touchUp;
   recentering = other.recentering;
   recentered = other.recentered;
   clickButtonState = other.clickButtonState;
   clickButtonDown = other.clickButtonDown;
   clickButtonUp = other.clickButtonUp;
   appButtonState = other.appButtonState;
   appButtonDown = other.appButtonDown;
   appButtonUp = other.appButtonUp;
   errorDetails = other.errorDetails;
   headsetRecenterRequested = other.headsetRecenterRequested;
   gvrPtr = other.gvrPtr;
 }
 public void CopyFrom(ControllerState other)
 {
     connectionState          = other.connectionState;
     apiStatus                = other.apiStatus;
     orientation              = other.orientation;
     gyro                     = other.gyro;
     accel                    = other.accel;
     isTouching               = other.isTouching;
     touchPos                 = other.touchPos;
     touchDown                = other.touchDown;
     touchUp                  = other.touchUp;
     recentering              = other.recentering;
     recentered               = other.recentered;
     clickButtonState         = other.clickButtonState;
     clickButtonDown          = other.clickButtonDown;
     clickButtonUp            = other.clickButtonUp;
     appButtonState           = other.appButtonState;
     appButtonDown            = other.appButtonDown;
     appButtonUp              = other.appButtonUp;
     errorDetails             = other.errorDetails;
     headsetRecenterRequested = other.headsetRecenterRequested;
     gvrPtr                   = other.gvrPtr;
 }