Example #1
0
 public virtual void Stop()
 {
     StaticMouse.RemoveMouseUpListener(MouseUpListener);
     Images.Values.ToList().ForEach(i => i.Dispose());
     Images.Clear();
     UiElements.Clear();
 }
Example #2
0
        public void Stop()
        {
            ChangeScreen(null);
            StaticDisplay.RemoveResizeListener(Resize);

            StaticMouse.RemoveMouseDownListener(MouseDown);
            StaticMouse.RemoveMouseUpListener(MouseUp);
            StaticMouse.RemoveMouseWheelListener(MouseWheel);

            StaticKeyboard.RemoveKeyDownListener(KeyDown);
            StaticKeyboard.RemoveKeyUpListener(KeyUp);
        }