Revert "Ava UI: Input Menu Refactor (#4998)"

This reverts commit 49b37550ca.

This currently breaks the GTK GUI.
This commit is contained in:
TSR Berry
2023-10-21 15:19:21 +02:00
parent 49b37550ca
commit 638be5f296
30 changed files with 1152 additions and 2916 deletions

View File

@@ -59,16 +59,16 @@ namespace Ryujinx.Input.Assigner
return _gamepad == null || !_gamepad.IsConnected;
}
public ButtonValue? GetPressedButton()
public string GetPressedButton()
{
IEnumerable<GamepadButtonInputId> pressedButtons = _detector.GetPressedButtons();
if (pressedButtons.Any())
{
return !_forStick ? new(pressedButtons.First()) : new(((StickInputId)pressedButtons.First()));
return !_forStick ? pressedButtons.First().ToString() : ((StickInputId)pressedButtons.First()).ToString();
}
return null;
return "";
}
private void CollectButtonStats()