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