public void RegisterInputEvent(InputEvent inputEvent) { OnInputEvent?.Invoke(this, inputEvent); }
public static void InvokeOnInput(string input) { OnInputEvent?.Invoke(input); }
//Buttons event (Keyboard and mouse). public void ButtonEvent(InputButtonType button, InputEventType inputEvent, int joyID = 0) { device = button == InputButtonType.MouseLeft ? InputDevice.Mouse : InputDevice.Keyboard; OnInputEvent?.Invoke(button, inputEvent, joyID); }