From 37ffbe8eb7102e0ef11a572e8ce1c95b7911d44d Mon Sep 17 00:00:00 2001 From: Windsurf7 <70599421+Windsurf7@users.noreply.github.com> Date: Fri, 30 Jan 2026 16:36:23 +0300 Subject: [PATCH 1/4] Commit suggestion Commit suggestion Co-authored-by: Megamouse --- rpcs3/rpcs3qt/gs_frame.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpcs3/rpcs3qt/gs_frame.cpp b/rpcs3/rpcs3qt/gs_frame.cpp index b2d2622394..e93d08ae0a 100644 --- a/rpcs3/rpcs3qt/gs_frame.cpp +++ b/rpcs3/rpcs3qt/gs_frame.cpp @@ -1218,7 +1218,7 @@ bool gs_frame::event(QEvent* ev) handle_cursor(visibility(), false, false, true); } - // Hardcoded mouse-based motion input. + // Mouse-based motion input. if (Emu.IsRunning()) { if (auto* pad_thr = pad::get_pad_thread(true)) From c711f24d7475f46e6a0e7a88a49b7b9a35a5a5eb Mon Sep 17 00:00:00 2001 From: Windsurf7 <70599421+Windsurf7@users.noreply.github.com> Date: Fri, 30 Jan 2026 16:36:34 +0300 Subject: [PATCH 2/4] Commit suggestion Commit suggestion Co-authored-by: Megamouse --- rpcs3/Input/pad_thread.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/rpcs3/Input/pad_thread.cpp b/rpcs3/Input/pad_thread.cpp index 7120992b52..27c1d33ee0 100644 --- a/rpcs3/Input/pad_thread.cpp +++ b/rpcs3/Input/pad_thread.cpp @@ -612,8 +612,7 @@ void pad_thread::operator()() // Inject mouse-based motion sensor values into pad sensors for gyro emulation. // Intentionally bound to Player 1 only. - auto& main_pad = m_pads[0]; - m_mouse_gyro.gyro_run(main_pad); + m_mouse_gyro.gyro_run(m_pads[0]); } m_info.now_connect = connected_devices + num_ldd_pad; From ca11efceebf0706a11e38aab54f5785895e6df2f Mon Sep 17 00:00:00 2001 From: Windsurf7 <70599421+Windsurf7@users.noreply.github.com> Date: Fri, 30 Jan 2026 16:36:45 +0300 Subject: [PATCH 3/4] Commit suggestion Commit suggestion Co-authored-by: Megamouse --- rpcs3/Input/mouse_gyro_state.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpcs3/Input/mouse_gyro_state.h b/rpcs3/Input/mouse_gyro_state.h index bd8537da34..8da17ae694 100644 --- a/rpcs3/Input/mouse_gyro_state.h +++ b/rpcs3/Input/mouse_gyro_state.h @@ -32,5 +32,5 @@ public: void set_gyro_y(s32 steps); void gyro_detect(QEvent* ev, const QWindow& win); - void gyro_run(const std::shared_ptr& pad); + void apply_gyro(const std::shared_ptr& pad); }; From c3c85bb3d1d7d147b896a7b09a578b6bbb46b855 Mon Sep 17 00:00:00 2001 From: Windsurf7 <70599421+Windsurf7@users.noreply.github.com> Date: Fri, 30 Jan 2026 16:36:55 +0300 Subject: [PATCH 4/4] Commit suggestion Commit suggestion Co-authored-by: Megamouse --- rpcs3/Input/mouse_gyro_state.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rpcs3/Input/mouse_gyro_state.cpp b/rpcs3/Input/mouse_gyro_state.cpp index ed3c2d90cd..fa082193aa 100644 --- a/rpcs3/Input/mouse_gyro_state.cpp +++ b/rpcs3/Input/mouse_gyro_state.cpp @@ -100,6 +100,10 @@ void mouse_gyro_state::gyro_detect(QEvent* ev, const QWindow& win) break; } + default: + { + break; + } } }