mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2026-03-11 17:45:43 +00:00
input: ava: Rename timer interval constant
Some checks failed
Canary release job / Release for linux-arm64 (push) Has been cancelled
Canary release job / Release for linux-x64 (push) Has been cancelled
Canary release job / Release for win-x64 (push) Has been cancelled
Canary release job / Release MacOS universal (push) Has been cancelled
Canary release job / Create GitLab Release (push) Has been cancelled
Some checks failed
Canary release job / Release for linux-arm64 (push) Has been cancelled
Canary release job / Release for linux-x64 (push) Has been cancelled
Canary release job / Release for win-x64 (push) Has been cancelled
Canary release job / Release MacOS universal (push) Has been cancelled
Canary release job / Create GitLab Release (push) Has been cancelled
Also cut the delay after which scrolling is considered ended in half
This commit is contained in:
parent
3df6b7c0f5
commit
ab7914f235
1 changed files with 3 additions and 2 deletions
|
|
@ -13,12 +13,13 @@ namespace Ryujinx.Ava.Input
|
|||
{
|
||||
internal class AvaloniaMouseDriver : IGamepadDriver
|
||||
{
|
||||
private const int ScrollTimerIntervalMilliseconds = 50;
|
||||
|
||||
private Control _widget;
|
||||
private bool _isDisposed;
|
||||
private Size _size;
|
||||
private readonly TopLevel _window;
|
||||
private DispatcherTimer _scrollStopTimer;
|
||||
private const int _dispatchTimerMS = 100;
|
||||
|
||||
public bool[] PressedButtons { get; }
|
||||
public Vector2 CurrentPosition { get; private set; }
|
||||
|
|
@ -44,7 +45,7 @@ namespace Ryujinx.Ava.Input
|
|||
|
||||
_scrollStopTimer = new DispatcherTimer
|
||||
{
|
||||
Interval = TimeSpan.FromMilliseconds(_dispatchTimerMS)
|
||||
Interval = TimeSpan.FromMilliseconds(ScrollTimerIntervalMilliseconds)
|
||||
};
|
||||
|
||||
PressedButtons = new bool[(int)MouseButton.Count];
|
||||
|
|
|
|||
Loading…
Reference in a new issue