public void EndRetainedInput(IInputRetainer _retainer) { if (_retainer != retainer) { throw new InvalidOperationException("This is not retaining input!"); } retainer = null; }
public void RetainInput(IInputRetainer _retainer) { if (retainer != null) { throw new InvalidOperationException("Something is already retaining input!"); } retainer = _retainer; }