From 00d27597ff7b5748982630ed720426a61972cedd Mon Sep 17 00:00:00 2001 From: MutantAura Date: Thu, 30 May 2024 14:38:42 +0100 Subject: [PATCH] style and analyzers --- src/Ryujinx/UI/ViewModels/Input/ControllerInputViewModel.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Ryujinx/UI/ViewModels/Input/ControllerInputViewModel.cs b/src/Ryujinx/UI/ViewModels/Input/ControllerInputViewModel.cs index b580ffe297..e259370820 100644 --- a/src/Ryujinx/UI/ViewModels/Input/ControllerInputViewModel.cs +++ b/src/Ryujinx/UI/ViewModels/Input/ControllerInputViewModel.cs @@ -25,7 +25,7 @@ namespace Ryujinx.Ava.UI.ViewModels.Input private (float, float) _uiStickRight; internal CancellationTokenSource _pollTokenSource = new(); - private CancellationToken _pollToken; + private readonly CancellationToken _pollToken; private GamepadInputConfig _config; public GamepadInputConfig Config @@ -152,7 +152,7 @@ namespace Ryujinx.Ava.UI.ViewModels.Input UiStickRight = _selectedGamepad.GetStick(StickInputId.Right); } - await Task.Delay(StickUiPollMs); + await Task.Delay(StickUiPollMs, token); } _pollTokenSource.Dispose();