Beispiel #1
0
        public void ForwardInput(Key k)
        {
            // todo: take/give focus n shit
            if (focusList.Count == 0)
            {
                return;
            }
            InputFocusStruct sF = focusList[0];

            // guiManager.isFocused
            foreach (MethodInfo inf in sF.methodCallbacks)
            {
                inf.Invoke(sF.Sender, new object[] { k });
            }
        }
Beispiel #2
0
 public void RegisterFocus(InputFocusStruct f)
 {
     focusList.Add(f);
     focusList.Sort(comparer);
 }