Controller overlay changed from Window to UserControl

This commit is contained in:
Barış Hamil 2025-06-20 18:32:17 +03:00 committed by GreemDev
parent 1e86aa9764
commit d7929a7f0e
5 changed files with 45 additions and 58 deletions

View file

@ -1710,9 +1710,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)