void onUninit() { if (bIsRunningThread) { bExitDetectPoseLoop = true; detectPoseAndJudgeMovingThread.Join(); bIsRunningThread = false; } WaveVR_Utils.Event.Remove(WaveVR_Utils.Event.ALL_VREVENT, OnEvent); if (m_isHmd && m_isUseSvrWraperRender) { WaveVR_Utils.SetSubmitOptionalArgument(null, (int)WVR_SubmitExtend.WVR_SubmitExtend_Default); //WVR_SubmitExtend_Default=0,WVR_SubmitExtend_DisableDisortion=1 } nSkipFrameCount = 0; cptEnabled = false; ResetLightLED(); }
// Update is called once per frame void Update() { if (nSkipFrameCount < NUM_SKIP_FRAMES) { nSkipFrameCount++; return; } if (m_isHmd && m_isUseSvrWraperRender) { WaveVR_Utils.SetSubmitOptionalArgument(null, unchecked ((int)0xF9E8D7C6)); } else if (!bIsRunningThread) { detectPoseAndJudgeMovingThread.Start(); bIsRunningThread = true; SetLcdRedColor(); } else { SetLcdRedColor(); } if (Input.anyKeyDown) { Log.d(LOG_TAG, "Input.anyKeyDown is pressed."); GoBackSelectItemOrExitGame(); /* * foreach (KeyCode keyCode in System.Enum.GetValues(typeof(KeyCode))) * { * if (Input.GetKeyDown(keyCode)) * { * Debug.LogError("Current Key is : " + keyCode.ToString()); * } * } */ } }