public OpenVRController(VRInputDeviceHand hand) { Pointer = new InputDevicePointer(this); Pointer.Activate(); Hand = hand; _buttonInputMap = GenerateButtonInputMap(); _axis1DMap = GenerateAxis1DInputMap(); _axis2DMap = GenerateAxis2DInputMap(); }
private void InternalSetActive(bool active) { if (mPointer == null) { return; } if (active) { mPointer.Activate(); if (mPointerVisual != null) { mPointer.Transform = mPointerVisual.transform; } } else { mPointer.Deactivate(); mPointer.Transform = null; } }