diff options
author | german77 <juangerman-13@hotmail.com> | 2022-12-22 08:07:46 +0100 |
---|---|---|
committer | Narr the Reg <juangerman-13@hotmail.com> | 2023-01-20 01:05:21 +0100 |
commit | 6d6b7bdbc327528d155f0422ef096846559844c0 (patch) | |
tree | 6954aaa23abe6d725f8452afb1fd19a59e962800 /src/input_common/helpers/joycon_driver.h | |
parent | input_common: Add dual joycon support (diff) | |
download | yuzu-6d6b7bdbc327528d155f0422ef096846559844c0.tar yuzu-6d6b7bdbc327528d155f0422ef096846559844c0.tar.gz yuzu-6d6b7bdbc327528d155f0422ef096846559844c0.tar.bz2 yuzu-6d6b7bdbc327528d155f0422ef096846559844c0.tar.lz yuzu-6d6b7bdbc327528d155f0422ef096846559844c0.tar.xz yuzu-6d6b7bdbc327528d155f0422ef096846559844c0.tar.zst yuzu-6d6b7bdbc327528d155f0422ef096846559844c0.zip |
Diffstat (limited to '')
-rw-r--r-- | src/input_common/helpers/joycon_driver.h | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/src/input_common/helpers/joycon_driver.h b/src/input_common/helpers/joycon_driver.h index dc5d60221..c9118ee93 100644 --- a/src/input_common/helpers/joycon_driver.h +++ b/src/input_common/helpers/joycon_driver.h @@ -8,14 +8,15 @@ #include <span> #include <thread> -#include "input_common/helpers/joycon_protocol/calibration.h" -#include "input_common/helpers/joycon_protocol/generic_functions.h" #include "input_common/helpers/joycon_protocol/joycon_types.h" -#include "input_common/helpers/joycon_protocol/poller.h" -#include "input_common/helpers/joycon_protocol/ringcon.h" -#include "input_common/helpers/joycon_protocol/rumble.h" namespace InputCommon::Joycon { +class CalibrationProtocol; +class GenericProtocol; +class NfcProtocol; +class JoyconPoller; +class RingConProtocol; +class RumbleProtocol; class JoyconDriver final { public: @@ -84,17 +85,18 @@ private: SupportedFeatures GetSupportedFeatures(); // Protocol Features - std::unique_ptr<CalibrationProtocol> calibration_protocol = nullptr; - std::unique_ptr<GenericProtocol> generic_protocol = nullptr; - std::unique_ptr<JoyconPoller> joycon_poller = nullptr; - std::unique_ptr<RingConProtocol> ring_protocol = nullptr; - std::unique_ptr<RumbleProtocol> rumble_protocol = nullptr; + std::unique_ptr<CalibrationProtocol> calibration_protocol; + std::unique_ptr<GenericProtocol> generic_protocol; + std::unique_ptr<NfcProtocol> nfc_protocol; + std::unique_ptr<JoyconPoller> joycon_poller; + std::unique_ptr<RingConProtocol> ring_protocol; + std::unique_ptr<RumbleProtocol> rumble_protocol; // Connection status bool is_connected{}; u64 delta_time; std::size_t error_counter{}; - std::shared_ptr<JoyconHandle> hidapi_handle = nullptr; + std::shared_ptr<JoyconHandle> hidapi_handle; std::chrono::time_point<std::chrono::steady_clock> last_update; // External device status |