Пример #1
0
 /**
  * Adds a callback to an event type
  */
 public static void AddInputEventCallback(EInputEventType type, InputEventDelegate callback)
 {
     GetInstance().inputEventCallbacks.Add(type, callback);
 }
Пример #2
0
 /**
  * Adds a callback to a keycode event
  */
 public static void AddKeyCodeCallback(KeyCode keyCode, InputEventDelegate callback)
 {
     GetInstance().keyCodeCallbacks.Add(keyCode, callback);
 }
Пример #3
0
 public void RegisterInputHandler(InputEventDelegate handler)
 {
     InputEvent += handler;
 }