mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-04-09 02:51:31 -06:00
Merge branch 'master' of https://github.com/Windsurf7/rpcs3
This commit is contained in:
commit
c5139d12e6
@ -100,6 +100,10 @@ void mouse_gyro_state::gyro_detect(QEvent* ev, const QWindow& win)
|
||||
|
||||
break;
|
||||
}
|
||||
default:
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -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);
|
||||
};
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user