/** * Adds a callback to an event type */ public static void AddInputEventCallback(EInputEventType type, InputEventDelegate callback) { GetInstance().inputEventCallbacks.Add(type, callback); }
/** * Adds a callback to a keycode event */ public static void AddKeyCodeCallback(KeyCode keyCode, InputEventDelegate callback) { GetInstance().keyCodeCallbacks.Add(keyCode, callback); }
public void RegisterInputHandler(InputEventDelegate handler) { InputEvent += handler; }