Ejemplo n.º 1
0
        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
        }
Ejemplo n.º 2
0
        public static void RemoveTextInputListener()
        {
            OnInputEvent = null;

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