summaryrefslogtreecommitdiffstats
path: root/src/input_common/helpers/joycon_driver.h
diff options
context:
space:
mode:
authorgerman77 <juangerman-13@hotmail.com>2023-10-22 18:14:08 +0200
committergerman77 <juangerman-13@hotmail.com>2023-10-22 19:30:59 +0200
commite4dfd513378432c4343159b09b3129f608daa597 (patch)
treedde7601e0e2dca2613947bc28ccfc8b7f98b5a8c /src/input_common/helpers/joycon_driver.h
parentMerge pull request #11831 from liamwhite/hosversionbetween (diff)
downloadyuzu-e4dfd513378432c4343159b09b3129f608daa597.tar
yuzu-e4dfd513378432c4343159b09b3129f608daa597.tar.gz
yuzu-e4dfd513378432c4343159b09b3129f608daa597.tar.bz2
yuzu-e4dfd513378432c4343159b09b3129f608daa597.tar.lz
yuzu-e4dfd513378432c4343159b09b3129f608daa597.tar.xz
yuzu-e4dfd513378432c4343159b09b3129f608daa597.tar.zst
yuzu-e4dfd513378432c4343159b09b3129f608daa597.zip
Diffstat (limited to '')
-rw-r--r--src/input_common/helpers/joycon_driver.h5
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;