Пример #1
0
        private bool GetButtonDown(int button, int gamepad)
        {
            KeyCode keyCode = (KeyCode)((int)KeyCode.Joystick1Button0 + (gamepad * InputBinding.MAX_JOYSTICK_BUTTONS) + button);

            return(InputManager.GetKeyDown(keyCode));
        }