static GvrBetaControllerState GetBetaControllerState(int device) { GvrBetaControllerState betaOutState = new GvrBetaControllerState(); if (Gvr.Internal.InstantPreview.IsActive && !Gvr.Internal.EmulatorManager.Instance.Connected) { // Uses Instant Preview to get controller state if connected. Gvr.Internal.EditorControllerProvider.instantPreviewControllerProvider .ReadBetaState(betaOutState, device); } return(betaOutState); }
public void CopyFrom(GvrBetaControllerState other) { betaConfigurationType = other.betaConfigurationType; betaTrackingStatusFlags = other.betaTrackingStatusFlags; }