style and analyzers
This commit is contained in:
parent
7b571ca053
commit
00d27597ff
1 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue