diff options
author | Narr the Reg <juangerman-13@hotmail.com> | 2024-01-26 06:46:00 +0100 |
---|---|---|
committer | Narr the Reg <juangerman-13@hotmail.com> | 2024-01-26 06:46:46 +0100 |
commit | f2012e5aff21e1ba0d06bfab868191d221e8f7ed (patch) | |
tree | 0c170b92b72a5be216c2b0e3aafd451feb2bb7f4 /src/hid_core/resources/vibration/vibration_base.cpp | |
parent | Merge pull request #12759 from liamwhite/mp-misc (diff) | |
download | yuzu-f2012e5aff21e1ba0d06bfab868191d221e8f7ed.tar yuzu-f2012e5aff21e1ba0d06bfab868191d221e8f7ed.tar.gz yuzu-f2012e5aff21e1ba0d06bfab868191d221e8f7ed.tar.bz2 yuzu-f2012e5aff21e1ba0d06bfab868191d221e8f7ed.tar.lz yuzu-f2012e5aff21e1ba0d06bfab868191d221e8f7ed.tar.xz yuzu-f2012e5aff21e1ba0d06bfab868191d221e8f7ed.tar.zst yuzu-f2012e5aff21e1ba0d06bfab868191d221e8f7ed.zip |
Diffstat (limited to 'src/hid_core/resources/vibration/vibration_base.cpp')
-rw-r--r-- | src/hid_core/resources/vibration/vibration_base.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/hid_core/resources/vibration/vibration_base.cpp b/src/hid_core/resources/vibration/vibration_base.cpp index f28d30406..90bff88f4 100644 --- a/src/hid_core/resources/vibration/vibration_base.cpp +++ b/src/hid_core/resources/vibration/vibration_base.cpp @@ -23,6 +23,10 @@ Result NpadVibrationBase::Deactivate() { return ResultSuccess; } +bool NpadVibrationBase::IsActive() const { + return ref_counter > 0; +} + bool NpadVibrationBase::IsVibrationMounted() const { return is_mounted; } |