diff options
| author | 2023-01-13 23:29:05 -0600 | |
|---|---|---|
| committer | 2023-01-20 00:51:45 -0600 | |
| commit | 340f15d1fa79594dbe12a6e19140ba012751b533 (patch) | |
| tree | 7a9ef54a17f927e4b8cf98dd32dd6d41c0d75201 /src/input_common/helpers/joycon_driver.h | |
| parent | core: hid: Only set the polling mode to the correct side (diff) | |
| download | yuzu-340f15d1fa79594dbe12a6e19140ba012751b533.tar.gz yuzu-340f15d1fa79594dbe12a6e19140ba012751b533.tar.xz yuzu-340f15d1fa79594dbe12a6e19140ba012751b533.zip | |
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 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; |