mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-04-08 18:41:30 -06:00
Some comment fixes
Some comment fixes
This commit is contained in:
parent
669cbacc29
commit
dd92c7bf51
@ -606,8 +606,8 @@ void pad_thread::operator()()
|
||||
|
||||
apply_copilots();
|
||||
|
||||
// Inject hardcoded mouse-based motion deltas into pad sensors for gyro emulation.
|
||||
// The Qt frontend accumulates deltas while RMB is held.
|
||||
// Inject mouse-based motion sensor values into pad sensors for gyro emulation.
|
||||
// The Qt frontend maps cursor offset and wheel input to absolute motion values while RMB is held.
|
||||
if (Emu.IsRunning())
|
||||
{
|
||||
const bool reset = m_mouse_gyro.reset;
|
||||
@ -618,6 +618,7 @@ void pad_thread::operator()()
|
||||
|
||||
if (gyro_x || gyro_y || gyro_z || reset)
|
||||
{
|
||||
// Mouse-based gyro input is intentionally bound to Player 1 only.
|
||||
auto& pad = m_pads[0];
|
||||
|
||||
if (pad && pad->is_connected())
|
||||
|
||||
@ -1268,7 +1268,7 @@ bool gs_frame::event(QEvent* ev)
|
||||
{
|
||||
auto* e = static_cast<QWheelEvent*>(ev);
|
||||
|
||||
// Track mouse wheels steps.
|
||||
// Track mouse wheel steps.
|
||||
const s32 steps = e->angleDelta().y() / 120;
|
||||
|
||||
// Accumulate mouse wheel steps while gyro emulation is active.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user