diff options
author | german77 <juangerman-13@hotmail.com> | 2023-01-13 23:29:05 -0600 |
---|---|---|
committer | Narr the Reg <juangerman-13@hotmail.com> | 2023-01-20 00:51:45 -0600 |
commit | 340f15d1fa79594dbe12a6e19140ba012751b533 (patch) | |
tree | 7a9ef54a17f927e4b8cf98dd32dd6d41c0d75201 /src/input_common/helpers/joycon_driver.h | |
parent | 4a307a7b3aa3afea7d62674f6cf40b76f3ffb5e3 (diff) |
input_common: Address byte review
Diffstat (limited to 'src/input_common/helpers/joycon_driver.h')
-rw-r--r-- | src/input_common/helpers/joycon_driver.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/input_common/helpers/joycon_driver.h b/src/input_common/helpers/joycon_driver.h index e8e65e1331..c1e189fa52 100644 --- a/src/input_common/helpers/joycon_driver.h +++ b/src/input_common/helpers/joycon_driver.h @@ -3,6 +3,7 @@ #pragma once +#include <atomic> #include <functional> #include <mutex> #include <span> @@ -97,7 +98,7 @@ private: std::unique_ptr<RumbleProtocol> rumble_protocol; // Connection status - bool is_connected{}; + std::atomic<bool> is_connected{}; u64 delta_time; std::size_t error_counter{}; std::shared_ptr<JoyconHandle> hidapi_handle; |