Exemplo n.º 1
0
 public void RegisterInputEvent(InputEvent inputEvent)
 {
     OnInputEvent?.Invoke(this, inputEvent);
 }
Exemplo n.º 2
0
 public static void InvokeOnInput(string input)
 {
     OnInputEvent?.Invoke(input);
 }
Exemplo n.º 3
0
 //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);
 }