mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-06-28 06:46:24 +02:00
Controller overlay changed from Window to UserControl
This commit is contained in:
parent
1e86aa9764
commit
d7929a7f0e
5 changed files with 45 additions and 58 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue