Ejemplo n.º 1
0
        private void GetAxisButtonDeadZone(int playerId, int actionId, ref float value)
        {
            InputAction action = ReInput.get_mapping().GetAction(actionId);

            if (action == null)
            {
                return;
            }
            int           behaviorId    = action.get_behaviorId();
            InputBehavior inputBehavior = ReInput.get_mapping().GetInputBehavior(playerId, behaviorId);

            if (inputBehavior == null)
            {
                return;
            }
            value = inputBehavior.get_buttonDeadZone() + 0.1f;
        }