Exemple #1
0
        public void Overrides(OverrideAdapter controller)
        {
            foreach (var button in controller.Overrides)
            {
                _buttons[button] = controller.IsPressed(button);
            }

            foreach (var button in controller.AxisOverrides)
            {
                _axes[button] = controller.AxisValue(button);
            }

            foreach (var button in controller.InversedButtons)
            {
                _buttons[button] ^= true;
            }
        }
Exemple #2
0
        public void Overrides(OverrideAdapter controller)
        {
            foreach (var button in controller.Overrides)
            {
                _buttons[button] = controller.IsPressed(button);
            }

            foreach (var button in controller.FloatOverrides)
            {
                _floatButtons[button] = controller.GetFloat(button);
            }

            foreach (var button in controller.InversedButtons)
            {
                _buttons[button] ^= true;
            }
        }