Controller overlay changed from Window to UserControl

This commit is contained in:
Barış Hamil 2025-06-20 18:32:17 +03:00
parent 7e40ca3d92
commit b36165bdf8
5 changed files with 45 additions and 58 deletions

View file

@ -1706,9 +1706,8 @@ namespace Ryujinx.Ava.UI.ViewModels
// Only show overlay if there are actual controller configurations for players 1-4
if (inputConfigs?.Any(c => c.PlayerIndex <= PlayerIndex.Player4) == true)
{
var overlay = new Windows.ControllerOverlayWindow(Window);
overlay.ShowControllerBindings(inputConfigs);
overlay.Show();
int duration = ConfigurationState.Instance.ControllerOverlayGameStartDuration.Value;
Window.ControllerOverlay.ShowControllerBindings(inputConfigs, duration);
}
}
catch (Exception ex)