private void InputManager_Update_MouseEvents(On.InputManager.orig_Update_MouseEvents orig, InputManager self) { if (HasFlag(State.Playing) && !HasFlag(State.Pausing)) { InputManagerHooks.Update_MouseEvents(self); } orig(self); }
private void InputManager_TriggerClickDownEvent(On.InputManager.orig_TriggerClickDownEvent orig, InputManager self, string eventName, ref List <ClickDownInfo> clickInfosContainer) { if (HasFlag(State.Playing) && !HasFlag(State.Pausing)) { InputManagerHooks.TriggerClickDownEvent(self, eventName, ref clickInfosContainer); return; } orig(self, eventName, ref clickInfosContainer); }