// Token: 0x060062B1 RID: 25265 RVA: 0x00232D84 File Offset: 0x00231184 private void UpdateWindowsCursorLock() { if (Input.GetKey(KeyCode.Tab) || this.uiActive) { Cursor.lockState = CursorLockMode.None; Cursor.visible = (Input.GetKey(KeyCode.Tab) || VRCApplicationSetup.IsEditor()); } else { Cursor.lockState = CursorLockMode.Locked; Cursor.visible = false; } }
// Token: 0x06005875 RID: 22645 RVA: 0x001EA350 File Offset: 0x001E8750 private bool _uploadMiniLog(string why) { return(false); if (!base.enabled) { if (!string.IsNullOrEmpty(this.uploadLogReason)) { UnityEngine.Debug.LogError("Upload of mini-log was triggered, but logging is disabled! Reason: " + this.uploadLogReason); } return(false); } if (VRCApplicationSetup.IsEditor()) { if (!string.IsNullOrEmpty(this.uploadLogReason)) { UnityEngine.Debug.LogError("Mini-log upload disabled in editor. Trigger Reason: " + this.uploadLogReason); } return(false); } if (this.isUploadingLog) { if (!string.IsNullOrEmpty(this.uploadLogReason)) { UnityEngine.Debug.LogError("Already uploading mini-log now. Reason: " + this.uploadLogReason); } return(false); } if (this.uploadReasonsAlreadyTriggered.Contains(why)) { return(false); } this.uploadReasonsAlreadyTriggered.Add(why); this.isUploadingLog = true; this.uploadLogReason = why; if (!string.IsNullOrEmpty(this.uploadLogReason)) { UnityEngine.Debug.LogError("Upload of mini-log was triggered! Reason: " + this.uploadLogReason); } base.StartCoroutine(this.UploadMiniLogCoroutine()); return(true); }
// Token: 0x060051B9 RID: 20921 RVA: 0x001BF390 File Offset: 0x001BD790 protected virtual Vector3 CalculateRotation(float dt) { if (VRCInputManager.comfortTurning) { float num = this.inAxisLookHorizontal.axis; if (this.inComfortLeft.button) { num = -1f; } if (this.inComfortRight.button) { num = 1f; } float num2 = Mathf.Abs(num); if (num2 <= 0.7f || this.ComfortRotationInputActive) { if (num2 < 0.3f) { this.ComfortRotationInputActive = false; } return(Vector3.zero); } this.ComfortRotationInputActive = true; if (num < 0f) { return(new Vector3(0f, -1f * this.ComfortRotation, 0f)); } return(new Vector3(0f, 1f * this.ComfortRotation, 0f)); } else { if (this.IsFirstPhysicsStepThisFrame) { float num3 = 0f; if (Cursor.lockState == CursorLockMode.Locked || QuickMenu.Instance.IsActive || VRCApplicationSetup.IsEditor()) { num3 = Input.GetAxis("Mouse X") * this.mouseRotationSpeed; } num3 += this.inAxisLookHorizontal.axis * this.controllerRotationSpeed; return(new Vector3(0f, num3, 0f)); } return(Vector3.zero); } }
// Token: 0x06005620 RID: 22048 RVA: 0x001DA974 File Offset: 0x001D8D74 public static bool ShouldForceTalkToggle() { return(!VRCApplicationSetup.IsEditor() && VRCInputManager.IsUsingHandController()); }
// Token: 0x0600561F RID: 22047 RVA: 0x001DA952 File Offset: 0x001D8D52 public static bool ShouldForceEnableHeadLookWalk() { return(!VRCApplicationSetup.IsEditor() && (VRCInputManager.IsRequired(VRCInputManager.InputMethod.Vive) || VRCInputManager.IsRequired(VRCInputManager.InputMethod.Oculus))); }
// Token: 0x0600561E RID: 22046 RVA: 0x001DA93C File Offset: 0x001D8D3C public static bool ShouldForceDisableComfortTurning() { return(!VRCApplicationSetup.IsEditor() && !HMDManager.IsHmdDetected()); }
// Token: 0x0600561D RID: 22045 RVA: 0x001DA926 File Offset: 0x001D8D26 public static bool ShouldForceGamelikeLocomotion() { return(!VRCApplicationSetup.IsEditor() && !HMDManager.IsHmdDetected()); }