private void Update() { if (ControlsLocked) { if (ProgradeText != null && !ProgradeText.IsFocused && NormalText != null && !NormalText.IsFocused && RadialText != null && !RadialText.IsFocused) { ControlsLocked = false; InputMouseEvent.Invoke(false); } } }
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); }
public static void InvokeOnInput(string input) { OnInputEvent?.Invoke(input); }
public void RegisterInputEvent(InputEvent inputEvent) { OnInputEvent?.Invoke(this, inputEvent); }
//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); }