Skip to content

Commit

Permalink
input: Add missing poll lock
Browse files Browse the repository at this point in the history
  • Loading branch information
ngoquang2708 committed Jan 4, 2025
1 parent ddc658f commit 6f7d15e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/input/controller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 6f7d15e

Please sign in to comment.