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