From 175bc66c91255c9b126e91b6b7998bf554f5d33e Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Sat, 19 Dec 2020 16:33:51 +1000 Subject: [PATCH] Qt: Fix some mouse presses at high click rate not registering --- src/duckstation-qt/qtdisplaywidget.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/duckstation-qt/qtdisplaywidget.cpp b/src/duckstation-qt/qtdisplaywidget.cpp index 013b5a2ac..1854fcde1 100644 --- a/src/duckstation-qt/qtdisplaywidget.cpp +++ b/src/duckstation-qt/qtdisplaywidget.cpp @@ -121,10 +121,11 @@ bool QtDisplayWidget::event(QEvent* event) } case QEvent::MouseButtonPress: + case QEvent::MouseButtonDblClick: case QEvent::MouseButtonRelease: { const u32 button_index = CountTrailingZeros(static_cast(static_cast(event)->button())); - emit windowMouseButtonEvent(static_cast(button_index + 1u), event->type() == QEvent::MouseButtonPress); + emit windowMouseButtonEvent(static_cast(button_index + 1u), event->type() != QEvent::MouseButtonRelease); return true; }