mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2024-11-15 09:35:27 +00:00
Ava: Fix wrong MouseButton (#4900)
This commit is contained in:
parent
7271f1b18e
commit
2b6e81deea
|
@ -70,13 +70,16 @@ namespace Ryujinx.Ava.Input
|
||||||
|
|
||||||
private void Parent_PointerReleaseEvent(object o, PointerReleasedEventArgs args)
|
private void Parent_PointerReleaseEvent(object o, PointerReleasedEventArgs args)
|
||||||
{
|
{
|
||||||
int button = (int)args.InitialPressMouseButton - 1;
|
if (args.InitialPressMouseButton != Avalonia.Input.MouseButton.None)
|
||||||
|
{
|
||||||
|
int button = (int)args.InitialPressMouseButton;
|
||||||
|
|
||||||
if (PressedButtons.Count() >= button)
|
if (PressedButtons.Count() >= button)
|
||||||
{
|
{
|
||||||
PressedButtons[button] = false;
|
PressedButtons[button] = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private void Parent_PointerPressEvent(object o, PointerPressedEventArgs args)
|
private void Parent_PointerPressEvent(object o, PointerPressedEventArgs args)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue