예제 #1
0
        public override bool GetButtonUp(UniAction action)
        {
            if (!Input.GetButtonUp(action.ToString()))
            {
                AddInputSetting(action.ToString());
                return(false);
            }

            return(true);
        }
예제 #2
0
        public override float GetAxisRaw(UniAction action)
        {
            var axisValue = .0f;

            try
            {
                axisValue = Input.GetAxisRaw(UniAction.Jump.ToString());
                Debug.Log(axisValue);
            }
            catch (ArgumentException)
            {
                Debug.Log("Axis does not exist!");
                AddInputSetting(action.ToString());
            }

            return(axisValue);
        }
        public override float GetAxis(UniAction action)
        {
            InputAction inputAction = _ipt.FindAction(action.ToString());

            return((inputAction == null) ? 0f : inputAction.ReadValue <float>());
        }
        public override bool GetButtonUp(UniAction action)
        {
            InputAction inputAction = _ipt.FindAction(action.ToString());

            return((inputAction == null) ? false : inputAction.ReadValue <bool>());
        }