static bool GetButtonDown(int button, int gamepad) { return(CustomInput.GetKeyDown((KeyCode)(firstJoyButton + (gamepad * InputBinding.MAX_JOYSTICK_BUTTONS) + button))); }