protected virtual void UpdateInputStates() { if (_handGestureSettings != null) { _isPointing = _handGestureSettings.IsPointing(); _isThumbUp = _handGestureSettings.IsThumbUp(); _closeFactor = InputManagerVR.GetAxis(_isLeft ? InputManagerVR.AxisCode.LeftGrip : InputManagerVR.AxisCode.RightGrip); } _blendPoint = InputValueRateChange(_isPointing, _blendPoint); _blendThumbUp = InputValueRateChange(_isThumbUp, _blendThumbUp); }
public bool IsPressed() { bool pressed = InputManagerVR.GetKey(_buttonCode); return(_invert ? !pressed : pressed); }