From 186e7f1b0803d9fc6aa8724ee275b0241e377e26 Mon Sep 17 00:00:00 2001 From: lizzie Date: Tue, 21 Apr 2026 17:16:39 +0000 Subject: [PATCH] fix emul atomic --- src/hid_core/frontend/emulated_controller.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/hid_core/frontend/emulated_controller.h b/src/hid_core/frontend/emulated_controller.h index 4435ec87a8..bee8fb8b3e 100644 --- a/src/hid_core/frontend/emulated_controller.h +++ b/src/hid_core/frontend/emulated_controller.h @@ -11,8 +11,10 @@ #include #include #include -#include #include +#include + +#include #include "common/common_types.h" #include "common/input.h" @@ -586,10 +588,10 @@ private: std::array controller_connected{}; // Atomically synched values - std::atomic npad_type{NpadStyleIndex::None}; - std::atomic original_npad_type{NpadStyleIndex::None}; + std::atomic npad_type{HID::NpadStyleIndex::None}; + std::atomic original_npad_type{HID::NpadStyleIndex::None}; // Temporary values to avoid doing changes while the controller is in configuring mode - std::atomic tmp_npad_type{NpadStyleIndex::None}; + std::atomic tmp_npad_type{HID::NpadStyleIndex::None}; std::atomic tmp_is_connected{false}; std::atomic is_connected{false}; std::atomic is_configuring{false};