From 5396a5513d512253762294317ea768254b0a6fb2 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Sun, 11 Jul 2021 21:44:18 +1000 Subject: [PATCH] UWP: Map mouse buttons to match Qt --- src/duckstation-uwp/uwp_host_interface.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/duckstation-uwp/uwp_host_interface.cpp b/src/duckstation-uwp/uwp_host_interface.cpp index 1de20d6c5..69175ac68 100644 --- a/src/duckstation-uwp/uwp_host_interface.cpp +++ b/src/duckstation-uwp/uwp_host_interface.cpp @@ -657,7 +657,7 @@ void UWPHostInterface::UpdateMouseButtonState(const winrt::Windows::UI::Input::P continue; io.MouseDown[i] = states[i]; - HandleHostMouseEvent(static_cast(i), states[i]); + HandleHostMouseEvent(static_cast(i + 1u), states[i]); } }); }