Exemplo n.º 1
0
 private void Update()
 {
     if (ControlsLocked)
     {
         if (ProgradeText != null && !ProgradeText.IsFocused &&
             NormalText != null && !NormalText.IsFocused &&
             RadialText != null && !RadialText.IsFocused)
         {
             ControlsLocked = false;
             InputMouseEvent.Invoke(false);
         }
     }
 }
Exemplo n.º 2
0
        public override void CheckInputs()
        {
            float axis = 0f;

            switch (axisType)
            {
            case AxisType.Smoothed:
                axis = Input.GetAxis(axisName);
                break;

            case AxisType.Raw:
                axis = Input.GetAxisRaw(axisName);
                break;

            default:
                break;
            }

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