From c9a082614d203a5822bee72b20922e6dd19ae66c Mon Sep 17 00:00:00 2001 From: Megamouse Date: Thu, 27 Jun 2024 20:53:02 +0200 Subject: [PATCH] input: ignore raw mouse double click when used as move handler --- rpcs3/rpcs3qt/gs_frame.cpp | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/rpcs3/rpcs3qt/gs_frame.cpp b/rpcs3/rpcs3qt/gs_frame.cpp index 0916c7afd2..a92b3f3eb7 100644 --- a/rpcs3/rpcs3qt/gs_frame.cpp +++ b/rpcs3/rpcs3qt/gs_frame.cpp @@ -1070,10 +1070,22 @@ void gs_frame::take_screenshot(std::vector data, u32 sshot_width, u32 sshot_ void gs_frame::mouseDoubleClickEvent(QMouseEvent* ev) { - if (m_disable_mouse || g_cfg.io.move == move_handler::mouse) return; + if (m_disable_mouse) + { + return; + } + + switch (g_cfg.io.move) + { + case move_handler::mouse: + case move_handler::raw_mouse: #ifdef HAVE_LIBEVDEV - if (g_cfg.io.move == move_handler::gun) return; + case move_handler::gun: #endif + return; + default: + break; + } if (ev->button() == Qt::LeftButton) {