Simplfy clamping and fix bug on window close.

This commit is contained in:
MutantAura
2024-05-31 00:07:09 +01:00
committed by Evan Husted
parent 43ece083b2
commit cfa5ad0757
2 changed files with 19 additions and 67 deletions

View File

@@ -884,7 +884,7 @@ namespace Ryujinx.Ava.UI.ViewModels.Input
_mainWindow.InputManager.GamepadDriver.OnGamepadConnected -= HandleOnGamepadConnected;
_mainWindow.InputManager.GamepadDriver.OnGamepadDisconnected -= HandleOnGamepadDisconnected;
(ConfigViewModel as ControllerInputViewModel)._pollTokenSource?.Cancel();
(ConfigViewModel as ControllerInputViewModel)?._pollTokenSource.Cancel();
_mainWindow.ViewModel.AppHost?.NpadManager.UnblockInputUpdates();