diff options
author | liamwhite <liamwhite@users.noreply.github.com> | 2024-01-20 19:34:54 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-20 19:34:54 +0100 |
commit | 5838779162897606a3525eb619379a56b2eec027 (patch) | |
tree | 3c3530e2f955545968fcc605122aa7565f4b5f1a /src/hid_core/resources/vibration/vibration_base.h | |
parent | Merge pull request #12701 from liamwhite/flinger-layer-issues (diff) | |
parent | service: hid: Fully implement abstract vibration (diff) | |
download | yuzu-5838779162897606a3525eb619379a56b2eec027.tar yuzu-5838779162897606a3525eb619379a56b2eec027.tar.gz yuzu-5838779162897606a3525eb619379a56b2eec027.tar.bz2 yuzu-5838779162897606a3525eb619379a56b2eec027.tar.lz yuzu-5838779162897606a3525eb619379a56b2eec027.tar.xz yuzu-5838779162897606a3525eb619379a56b2eec027.tar.zst yuzu-5838779162897606a3525eb619379a56b2eec027.zip |
Diffstat (limited to 'src/hid_core/resources/vibration/vibration_base.h')
-rw-r--r-- | src/hid_core/resources/vibration/vibration_base.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/hid_core/resources/vibration/vibration_base.h b/src/hid_core/resources/vibration/vibration_base.h index c6c5fc4d9..69c26e669 100644 --- a/src/hid_core/resources/vibration/vibration_base.h +++ b/src/hid_core/resources/vibration/vibration_base.h @@ -6,6 +6,10 @@ #include "common/common_types.h" #include "core/hle/result.h" +namespace Core::HID { +class EmulatedController; +} + namespace Service::HID { class NpadVibration; @@ -14,13 +18,13 @@ class NpadVibrationBase { public: explicit NpadVibrationBase(); - virtual Result IncrementRefCounter(); - virtual Result DecrementRefCounter(); + virtual Result Activate(); + virtual Result Deactivate(); bool IsVibrationMounted() const; protected: - u64 xcd_handle{}; + Core::HID::EmulatedController* xcd_handle{nullptr}; s32 ref_counter{}; bool is_mounted{}; NpadVibration* vibration_handler{nullptr}; |