input: Add missing poll lock (#2044)

This commit is contained in:
Quang Ngô 2025-01-04 19:33:23 +07:00 committed by GitHub
parent f42b8acf47
commit f2f24bb2cd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -266,6 +266,7 @@ void GameController::TryOpenSDLController() {
}
u32 GameController::Poll() {
std::scoped_lock lock{m_mutex};
if (m_connected) {
auto time = Libraries::Kernel::sceKernelGetProcessTime();
if (m_states_num == 0) {