mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-11-08 11:31:44 +00:00
Ava: Fix wrong MouseButton (#4900)
This commit is contained in:
parent
7271f1b18e
commit
2b6e81deea
1 changed files with 7 additions and 4 deletions
|
@ -70,11 +70,14 @@ namespace Ryujinx.Ava.Input
|
|||
|
||||
private void Parent_PointerReleaseEvent(object o, PointerReleasedEventArgs args)
|
||||
{
|
||||
int button = (int)args.InitialPressMouseButton - 1;
|
||||
|
||||
if (PressedButtons.Count() >= button)
|
||||
if (args.InitialPressMouseButton != Avalonia.Input.MouseButton.None)
|
||||
{
|
||||
PressedButtons[button] = false;
|
||||
int button = (int)args.InitialPressMouseButton;
|
||||
|
||||
if (PressedButtons.Count() >= button)
|
||||
{
|
||||
PressedButtons[button] = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue