diff options
author | liamwhite <liamwhite@users.noreply.github.com> | 2023-10-29 16:25:02 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-29 16:25:02 +0100 |
commit | 40c97c0549fa5f680f47a7f9d10c536d1cb1fd0d (patch) | |
tree | a75821894c25e0de0f466e1ca3f78400e8a8a78a /src/input_common/helpers/joycon_driver.h | |
parent | Merge pull request #11843 from liamwhite/sync-process (diff) | |
parent | input_common: joycon: Move vibrations to a queue (diff) | |
download | yuzu-40c97c0549fa5f680f47a7f9d10c536d1cb1fd0d.tar yuzu-40c97c0549fa5f680f47a7f9d10c536d1cb1fd0d.tar.gz yuzu-40c97c0549fa5f680f47a7f9d10c536d1cb1fd0d.tar.bz2 yuzu-40c97c0549fa5f680f47a7f9d10c536d1cb1fd0d.tar.lz yuzu-40c97c0549fa5f680f47a7f9d10c536d1cb1fd0d.tar.xz yuzu-40c97c0549fa5f680f47a7f9d10c536d1cb1fd0d.tar.zst yuzu-40c97c0549fa5f680f47a7f9d10c536d1cb1fd0d.zip |
Diffstat (limited to '')
-rw-r--r-- | src/input_common/helpers/joycon_driver.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/input_common/helpers/joycon_driver.h b/src/input_common/helpers/joycon_driver.h index 335e12cc3..5355780fb 100644 --- a/src/input_common/helpers/joycon_driver.h +++ b/src/input_common/helpers/joycon_driver.h @@ -9,6 +9,7 @@ #include <span> #include <thread> +#include "common/threadsafe_queue.h" #include "input_common/helpers/joycon_protocol/joycon_types.h" namespace Common::Input { @@ -152,6 +153,10 @@ private: SerialNumber handle_serial_number{}; // Serial number type reported by hidapi SupportedFeatures supported_features{}; + /// Queue of vibration request to controllers + Common::Input::DriverResult last_vibration_result{Common::Input::DriverResult::Success}; + Common::SPSCQueue<VibrationValue> vibration_queue; + // Thread related mutable std::mutex mutex; std::jthread input_thread; |