refactor: enhance AutoAssignController to utilize ViewModel and improve controller refresh logic
This commit is contained in:
@@ -110,7 +110,7 @@ namespace Ryujinx.Ava.UI.Windows
|
||||
if (Program.PreviewerDetached)
|
||||
{
|
||||
InputManager = new InputManager(new AvaloniaKeyboardDriver(this), new SDL2GamepadDriver());
|
||||
AutoAssignController = new AutoAssignController(InputManager);
|
||||
AutoAssignController = new AutoAssignController(InputManager, ViewModel);
|
||||
|
||||
_ = this.GetObservable(IsActiveProperty).Subscribe(it => ViewModel.IsActive = it);
|
||||
this.ScalingChanged += OnScalingChanged;
|
||||
|
||||
Reference in New Issue
Block a user