/// <summary> /// Unhooks the input management from the window. /// </summary> public void Dispose() { window.KeyDown -= KeyDown; window.KeyUp -= KeyUp; window.MouseDown -= MouseDown; window.MouseUp -= MouseUp; anyDownedKeys.Dispose(pool); downedKeys.Dispose(pool); previousDownedKeys.Dispose(pool); anyDownedButtons.Dispose(pool); downedButtons.Dispose(pool); previousDownedButtons.Dispose(pool); }