mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-02 22:39:22 +00:00
[DesktopVRSwitch] Stop being a baby.
???
This commit is contained in:
parent
133f5200b4
commit
6774c3ff6d
22 changed files with 205 additions and 169 deletions
|
@ -17,26 +17,20 @@ public class CVRInputManagerTracker : VRModeTracker
|
|||
|
||||
void OnPostSwitch(bool intoVR)
|
||||
{
|
||||
CVRInputManager _cvrInputManager = CVRInputManager.Instance;
|
||||
if (_cvrInputManager == null)
|
||||
{
|
||||
DesktopVRSwitch.Logger.Error("Error while getting CVRInputManager!");
|
||||
return;
|
||||
}
|
||||
DesktopVRSwitch.Logger.Msg("Resetting CVRInputManager inputs.");
|
||||
|
||||
_cvrInputManager.inputEnabled = true;
|
||||
CVRInputManager.Instance.inputEnabled = true;
|
||||
|
||||
//just in case
|
||||
_cvrInputManager.blockedByUi = false;
|
||||
CVRInputManager.Instance.blockedByUi = false;
|
||||
//sometimes head can get stuck, so just in case
|
||||
_cvrInputManager.independentHeadToggle = false;
|
||||
CVRInputManager.Instance.independentHeadToggle = false;
|
||||
//just nice to load into desktop with idle gesture
|
||||
_cvrInputManager.gestureLeft = 0f;
|
||||
_cvrInputManager.gestureLeftRaw = 0f;
|
||||
_cvrInputManager.gestureRight = 0f;
|
||||
_cvrInputManager.gestureRightRaw = 0f;
|
||||
CVRInputManager.Instance.gestureLeft = 0f;
|
||||
CVRInputManager.Instance.gestureLeftRaw = 0f;
|
||||
CVRInputManager.Instance.gestureRight = 0f;
|
||||
CVRInputManager.Instance.gestureRightRaw = 0f;
|
||||
//turn off finger tracking input
|
||||
_cvrInputManager.individualFingerTracking = false;
|
||||
CVRInputManager.Instance.individualFingerTracking = false;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue