public static void SetTextInputListener(EventArg1 <TextInputEventArgs> onInputEvent)
        {
            OnInputEvent = onInputEvent;

            MainGame.Singleton.Window.TextInput -= TextInputListener; //Remove old listnener
            TextInputListener = new EventHandler <TextInputEventArgs>(InputEvent);
            MainGame.Singleton.Window.TextInput += TextInputListener; //Add new listnener
        }
        public static void RemoveTextInputListener()
        {
            OnInputEvent = null;

            MainGame.Singleton.Window.TextInput -= TextInputListener; //Remove listnener
        }
Esempio n. 3
0
 public Screen()
 {
     kb_selectCallbacks = new EventArg1 <UIElement>();
 }