Пример #1
0
        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);
        }
Пример #2
0
        public bool IsPressed()
        {
            bool pressed = InputManagerVR.GetKey(_buttonCode);

            return(_invert ? !pressed : pressed);
        }