This commit is contained in:
Windsurf7 2026-01-30 16:37:56 +03:00
commit c5139d12e6
4 changed files with 7 additions and 4 deletions

View File

@ -100,6 +100,10 @@ void mouse_gyro_state::gyro_detect(QEvent* ev, const QWindow& win)
break;
}
default:
{
break;
}
}
}

View File

@ -26,5 +26,5 @@ public:
void set_gyro_y(s32 steps);
void gyro_detect(QEvent* ev, const QWindow& win);
void gyro_run(const std::shared_ptr<Pad>& pad);
void apply_gyro(const std::shared_ptr<Pad>& pad);
};

View File

@ -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;

View File

@ -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))