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