From 6f7d15e0aa97f22d823cf526c39fa2677c9f8b8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Quang=20Ng=C3=B4?= Date: Sat, 4 Jan 2025 12:10:09 +0700 Subject: [PATCH] input: Add missing poll lock --- src/input/controller.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/input/controller.cpp b/src/input/controller.cpp index daef9c9407d..366d80f8ffb 100644 --- a/src/input/controller.cpp +++ b/src/input/controller.cpp @@ -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) {