Ability to assign hotkeys to cycle controllers for players

This commit is contained in:
Barış Hamil
2025-01-29 19:53:09 +03:00
parent 707c9ef748
commit f73ffd1fd0
9 changed files with 261 additions and 72 deletions

View File

@@ -890,5 +890,13 @@ namespace Ryujinx.Ava.UI.ViewModels.Input
AvaloniaKeyboardDriver.Dispose();
}
public void CyclePlayerDevice(int player)
{
LoadDevices();
PlayerId = (PlayerIndex)player;
Device = (Device + 1) % Devices.Count;
Save();
}
}
}