protected virtual void Update() { if (IsSimulation == true) { LeftTrigger = P3dInputManager.IsPressed(simulatedLeftTrigger); LeftGrip = P3dInputManager.IsPressed(simulatedLeftGrip); RightTrigger = P3dInputManager.IsPressed(simulatedRightTrigger); RightGrip = P3dInputManager.IsPressed(simulatedRightGrip); } //if (P3dInputManager.IsPressed(recenterKey) == true) //{ // Recenter(); //} }
protected virtual void Update() { if (target != null) { if (P3dInputManager.IsPressed(key) == true) { if (storeStates == true && target.enabled == false) { P3dStateManager.StoreAllStates(); } target.enabled = true; } else { target.enabled = false; } } }
protected virtual void Update() { if (IsSimulation == true) { LeftTrigger = P3dInputManager.IsPressed(simulatedLeftTrigger); LeftGrip = P3dInputManager.IsPressed(simulatedLeftGrip); RightTrigger = P3dInputManager.IsPressed(simulatedRightTrigger); RightGrip = P3dInputManager.IsPressed(simulatedRightGrip); if (P3dInputManager.PointOverGui(P3dInputManager.MousePosition) == true) { LeftTrigger = false; LeftGrip = false; RightTrigger = false; RightGrip = false; } } //if (P3dInputManager.IsPressed(recenterKey) == true) //{ // Recenter(); //} }