WIP: Added a new window for shortcut configuration #607

Closed
Goodfeat wants to merge 22 commits from master into master
Showing only changes of commit 3a8737f0e6 - Show all commits

View File

@ -82,11 +82,12 @@ namespace Ryujinx.Ava.UI.Windows
GreemDev commented 2025-02-01 06:56:19 +00:00 (Migrated from github.com)
Review

I don't think the LED clearing logic is needed here

I don't think the LED clearing logic is needed here
GreemDev commented 2025-02-01 06:56:19 +00:00 (Migrated from github.com)
Review

I don't think the LED clearing logic is needed here

I don't think the LED clearing logic is needed here
GreemDev commented 2025-02-01 06:57:12 +00:00 (Migrated from github.com)
Review

Drop the brace into a new line; rename the method to GetArguments; it is returning a value and not setting anything

Drop the brace into a new line; rename the method to `GetArguments`; it is returning a value and not setting anything
GreemDev commented 2025-02-01 06:57:12 +00:00 (Migrated from github.com)
Review

Drop the brace into a new line; rename the method to GetArguments; it is returning a value and not setting anything

Drop the brace into a new line; rename the method to `GetArguments`; it is returning a value and not setting anything
GameName,
GameId,
GameIconData,
SetArguments()
GreemDev commented 2025-02-01 06:56:19 +00:00 (Migrated from github.com)
Review

I don't think the LED clearing logic is needed here

I don't think the LED clearing logic is needed here
GreemDev commented 2025-02-01 06:57:12 +00:00 (Migrated from github.com)
Review

Drop the brace into a new line; rename the method to GetArguments; it is returning a value and not setting anything

Drop the brace into a new line; rename the method to `GetArguments`; it is returning a value and not setting anything
GetArguments()
GreemDev commented 2025-02-01 06:56:19 +00:00 (Migrated from github.com)
Review

I don't think the LED clearing logic is needed here

I don't think the LED clearing logic is needed here
GreemDev commented 2025-02-01 06:57:12 +00:00 (Migrated from github.com)
Review

Drop the brace into a new line; rename the method to GetArguments; it is returning a value and not setting anything

Drop the brace into a new line; rename the method to `GetArguments`; it is returning a value and not setting anything
);
}
private string SetArguments() {
GreemDev commented 2025-02-01 06:56:19 +00:00 (Migrated from github.com)
Review

I don't think the LED clearing logic is needed here

I don't think the LED clearing logic is needed here
GreemDev commented 2025-02-01 06:57:12 +00:00 (Migrated from github.com)
Review

Drop the brace into a new line; rename the method to GetArguments; it is returning a value and not setting anything

Drop the brace into a new line; rename the method to `GetArguments`; it is returning a value and not setting anything
private string GetArguments()
GreemDev commented 2025-02-01 06:56:19 +00:00 (Migrated from github.com)
Review

I don't think the LED clearing logic is needed here

I don't think the LED clearing logic is needed here
GreemDev commented 2025-02-01 06:57:12 +00:00 (Migrated from github.com)
Review

Drop the brace into a new line; rename the method to GetArguments; it is returning a value and not setting anything

Drop the brace into a new line; rename the method to `GetArguments`; it is returning a value and not setting anything
{
GreemDev commented 2025-02-01 06:56:19 +00:00 (Migrated from github.com)
Review

I don't think the LED clearing logic is needed here

I don't think the LED clearing logic is needed here
GreemDev commented 2025-02-01 06:57:12 +00:00 (Migrated from github.com)
Review

Drop the brace into a new line; rename the method to GetArguments; it is returning a value and not setting anything

Drop the brace into a new line; rename the method to `GetArguments`; it is returning a value and not setting anything
string line = "";
@ -155,12 +156,6 @@ namespace Ryujinx.Ava.UI.Windows
GreemDev commented 2025-02-01 06:56:19 +00:00 (Migrated from github.com)
Review

I don't think the LED clearing logic is needed here

I don't think the LED clearing logic is needed here
GreemDev commented 2025-02-01 06:56:19 +00:00 (Migrated from github.com)
Review

I don't think the LED clearing logic is needed here

I don't think the LED clearing logic is needed here
GreemDev commented 2025-02-01 06:57:12 +00:00 (Migrated from github.com)
Review

Drop the brace into a new line; rename the method to GetArguments; it is returning a value and not setting anything

Drop the brace into a new line; rename the method to `GetArguments`; it is returning a value and not setting anything
GreemDev commented 2025-02-01 06:57:12 +00:00 (Migrated from github.com)
Review

Drop the brace into a new line; rename the method to GetArguments; it is returning a value and not setting anything

Drop the brace into a new line; rename the method to `GetArguments`; it is returning a value and not setting anything
protected override void OnClosing(WindowClosingEventArgs e)
{
GreemDev commented 2025-02-01 06:56:19 +00:00 (Migrated from github.com)
Review

I don't think the LED clearing logic is needed here

I don't think the LED clearing logic is needed here
GreemDev commented 2025-02-01 06:57:12 +00:00 (Migrated from github.com)
Review

Drop the brace into a new line; rename the method to GetArguments; it is returning a value and not setting anything

Drop the brace into a new line; rename the method to `GetArguments`; it is returning a value and not setting anything
foreach (IGamepad gamepad in RyujinxApp.MainWindow.InputManager.GamepadDriver.GetGamepads())
GreemDev commented 2025-02-01 06:56:19 +00:00 (Migrated from github.com)
Review

I don't think the LED clearing logic is needed here

I don't think the LED clearing logic is needed here
GreemDev commented 2025-02-01 06:57:12 +00:00 (Migrated from github.com)
Review

Drop the brace into a new line; rename the method to GetArguments; it is returning a value and not setting anything

Drop the brace into a new line; rename the method to `GetArguments`; it is returning a value and not setting anything
{
GreemDev commented 2025-02-01 06:56:19 +00:00 (Migrated from github.com)
Review

I don't think the LED clearing logic is needed here

I don't think the LED clearing logic is needed here
GreemDev commented 2025-02-01 06:57:12 +00:00 (Migrated from github.com)
Review

Drop the brace into a new line; rename the method to GetArguments; it is returning a value and not setting anything

Drop the brace into a new line; rename the method to `GetArguments`; it is returning a value and not setting anything
gamepad?.ClearLed();
GreemDev commented 2025-02-01 06:56:19 +00:00 (Migrated from github.com)
Review

I don't think the LED clearing logic is needed here

I don't think the LED clearing logic is needed here
GreemDev commented 2025-02-01 06:57:12 +00:00 (Migrated from github.com)
Review

Drop the brace into a new line; rename the method to GetArguments; it is returning a value and not setting anything

Drop the brace into a new line; rename the method to `GetArguments`; it is returning a value and not setting anything
}
GreemDev commented 2025-02-01 06:56:19 +00:00 (Migrated from github.com)
Review

I don't think the LED clearing logic is needed here

I don't think the LED clearing logic is needed here
GreemDev commented 2025-02-01 06:57:12 +00:00 (Migrated from github.com)
Review

Drop the brace into a new line; rename the method to GetArguments; it is returning a value and not setting anything

Drop the brace into a new line; rename the method to `GetArguments`; it is returning a value and not setting anything
GreemDev commented 2025-02-01 06:56:19 +00:00 (Migrated from github.com)
Review

I don't think the LED clearing logic is needed here

I don't think the LED clearing logic is needed here
GreemDev commented 2025-02-01 06:57:12 +00:00 (Migrated from github.com)
Review

Drop the brace into a new line; rename the method to GetArguments; it is returning a value and not setting anything

Drop the brace into a new line; rename the method to `GetArguments`; it is returning a value and not setting anything
base.OnClosing(e);
}
}

GreemDev commented 2025-02-01 06:56:19 +00:00 (Migrated from github.com)
Review

I don't think the LED clearing logic is needed here

I don't think the LED clearing logic is needed here
GreemDev commented 2025-02-01 06:56:19 +00:00 (Migrated from github.com)
Review

I don't think the LED clearing logic is needed here

I don't think the LED clearing logic is needed here
GreemDev commented 2025-02-01 06:57:12 +00:00 (Migrated from github.com)
Review

Drop the brace into a new line; rename the method to GetArguments; it is returning a value and not setting anything

Drop the brace into a new line; rename the method to `GetArguments`; it is returning a value and not setting anything
GreemDev commented 2025-02-01 06:57:12 +00:00 (Migrated from github.com)
Review

Drop the brace into a new line; rename the method to GetArguments; it is returning a value and not setting anything

Drop the brace into a new line; rename the method to `GetArguments`; it is returning a value and not setting anything