Пример #1
0
        public static void RebindAxis(string _name, KeyCode _positive, KeyCode _negative)
        {
            BindingAxis axis = GetBindingAxis(_name);

            if (axis != null)
            {
                axis.Rebind(_positive, _negative);
            }
        }
Пример #2
0
        public static float BindingAxis(string _name)
        {
            BindingAxis axis = GetBindingAxis(_name);

            if (axis != null)
            {
                return(axis.Axis());
            }

            return(0);
        }