mirror of
https://git.743378673.xyz/MeloNX/MeloNX.git
synced 2025-06-29 03:46:24 +02:00
Revert "Ava UI: Input Menu Refactor (#4998)"
This reverts commit 49b37550ca
.
This currently breaks the GTK GUI.
This commit is contained in:
parent
49b37550ca
commit
638be5f296
30 changed files with 1152 additions and 2916 deletions
|
@ -23,7 +23,7 @@ namespace Ryujinx.Input.Assigner
|
|||
|
||||
public bool HasAnyButtonPressed()
|
||||
{
|
||||
return GetPressedButton() is not null;
|
||||
return GetPressedButton().Length != 0;
|
||||
}
|
||||
|
||||
public bool ShouldCancel()
|
||||
|
@ -31,20 +31,20 @@ namespace Ryujinx.Input.Assigner
|
|||
return _keyboardState.IsPressed(Key.Escape);
|
||||
}
|
||||
|
||||
public ButtonValue? GetPressedButton()
|
||||
public string GetPressedButton()
|
||||
{
|
||||
ButtonValue? keyPressed = null;
|
||||
string keyPressed = "";
|
||||
|
||||
for (Key key = Key.Unknown; key < Key.Count; key++)
|
||||
{
|
||||
if (_keyboardState.IsPressed(key))
|
||||
{
|
||||
keyPressed = new(key);
|
||||
keyPressed = key.ToString();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return !ShouldCancel() ? keyPressed : null;
|
||||
return !ShouldCancel() ? keyPressed : "";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue