diff options
author | bunnei <bunneidev@gmail.com> | 2020-11-29 00:22:46 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-29 00:22:46 +0100 |
commit | 312a8bd4b47d3d359b9e65031a82e657e9e3df3a (patch) | |
tree | ef98f8b9826ccc7317cf8351be9860bce920115b /src/core/hle/service/hid/controllers/npad.h | |
parent | Merge pull request #5031 from ogniK5377/temp_mix_buffer-remove (diff) | |
parent | Stub set and get NpadCommunicationMode (diff) | |
download | yuzu-312a8bd4b47d3d359b9e65031a82e657e9e3df3a.tar yuzu-312a8bd4b47d3d359b9e65031a82e657e9e3df3a.tar.gz yuzu-312a8bd4b47d3d359b9e65031a82e657e9e3df3a.tar.bz2 yuzu-312a8bd4b47d3d359b9e65031a82e657e9e3df3a.tar.lz yuzu-312a8bd4b47d3d359b9e65031a82e657e9e3df3a.tar.xz yuzu-312a8bd4b47d3d359b9e65031a82e657e9e3df3a.tar.zst yuzu-312a8bd4b47d3d359b9e65031a82e657e9e3df3a.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/service/hid/controllers/npad.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/core/hle/service/hid/controllers/npad.h b/src/core/hle/service/hid/controllers/npad.h index 160dcbbe3..f1437c941 100644 --- a/src/core/hle/service/hid/controllers/npad.h +++ b/src/core/hle/service/hid/controllers/npad.h @@ -86,6 +86,11 @@ public: None = 2, }; + enum class NpadCommunicationMode : u64 { + Unknown0 = 0, + Unknown1 = 1, + }; + struct DeviceHandle { NpadType npad_type{}; u8 npad_id{}; @@ -146,6 +151,9 @@ public: void SetNpadHandheldActivationMode(NpadHandheldActivationMode activation_mode); NpadHandheldActivationMode GetNpadHandheldActivationMode() const; + void SetNpadCommunicationMode(NpadCommunicationMode communication_mode_); + NpadCommunicationMode GetNpadCommunicationMode() const; + void SetNpadMode(u32 npad_id, NpadAssignments assignment_mode); bool VibrateControllerAtIndex(std::size_t npad_index, std::size_t device_index, @@ -424,6 +432,8 @@ private: std::vector<u32> supported_npad_id_types{}; NpadHoldType hold_type{NpadHoldType::Vertical}; NpadHandheldActivationMode handheld_activation_mode{NpadHandheldActivationMode::Dual}; + // NpadCommunicationMode is unknown, default value is 1 + NpadCommunicationMode communication_mode{NpadCommunicationMode::Unknown1}; // Each controller should have their own styleset changed event std::array<Kernel::EventPair, 10> styleset_changed_events; std::array<std::array<std::chrono::steady_clock::time_point, 2>, 10> last_vibration_timepoints; |