diff options
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 e8e65e133..c1e189fa5 100644 --- a/src/input_common/helpers/joycon_driver.h +++ b/src/input_common/helpers/joycon_driver.h | |||
| @@ -3,6 +3,7 @@ | |||
| 3 | 3 | ||
| 4 | #pragma once | 4 | #pragma once |
| 5 | 5 | ||
| 6 | #include <atomic> | ||
| 6 | #include <functional> | 7 | #include <functional> |
| 7 | #include <mutex> | 8 | #include <mutex> |
| 8 | #include <span> | 9 | #include <span> |
| @@ -97,7 +98,7 @@ private: | |||
| 97 | std::unique_ptr<RumbleProtocol> rumble_protocol; | 98 | std::unique_ptr<RumbleProtocol> rumble_protocol; |
| 98 | 99 | ||
| 99 | // Connection status | 100 | // Connection status |
| 100 | bool is_connected{}; | 101 | std::atomic<bool> is_connected{}; |
| 101 | u64 delta_time; | 102 | u64 delta_time; |
| 102 | std::size_t error_counter{}; | 103 | std::size_t error_counter{}; |
| 103 | std::shared_ptr<JoyconHandle> hidapi_handle; | 104 | std::shared_ptr<JoyconHandle> hidapi_handle; |