Ability to assign hotkeys to cycle controllers for players

This commit is contained in:
Barış Hamil
2025-01-29 19:53:09 +03:00
committed by Frog Business
parent 9b1fb3a27b
commit d71deb3046
9 changed files with 261 additions and 72 deletions

View File

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