private void OnLeftTriggerChange(object sender, GamepadTriggerEventArgs evt) { if (evt.Trigger == GamepadTriggers.Left) { Text = "OnLeftTriggerChange"; } }
private void OnRightTriggerRelease(object sender, GamepadTriggerEventArgs evt) { if (evt.Trigger == GamepadTriggers.Right) { Text = "OnRightTriggerRelease"; } }
private void OnTriggerPress(object sender, GamepadTriggerEventArgs args) { ButtonConfig currentButton = args.Trigger == GamepadTriggers.Left ? profile.LT : profile.RT; if (args.Value > 0) { OnButtonDown?.Invoke(this, new GamepadHelperEventArgs(currentButton)); } else { OnButtonUp?.Invoke(this, new GamepadHelperEventArgs(currentButton)); } }