summaryrefslogtreecommitdiffstats
path: root/src/hid_core/resources/npad/npad_vibration.h
diff options
context:
space:
mode:
authorNarr the Reg <juangerman-13@hotmail.com>2024-01-23 06:30:34 +0100
committerNarr the Reg <juangerman-13@hotmail.com>2024-01-26 00:14:18 +0100
commit53b321c945d7e6782a6011b7ee55035da8f54dbc (patch)
treeab538a4d934f71453bd4b16a929599ae5f525668 /src/hid_core/resources/npad/npad_vibration.h
parentMerge pull request #12759 from liamwhite/mp-misc (diff)
downloadyuzu-53b321c945d7e6782a6011b7ee55035da8f54dbc.tar
yuzu-53b321c945d7e6782a6011b7ee55035da8f54dbc.tar.gz
yuzu-53b321c945d7e6782a6011b7ee55035da8f54dbc.tar.bz2
yuzu-53b321c945d7e6782a6011b7ee55035da8f54dbc.tar.lz
yuzu-53b321c945d7e6782a6011b7ee55035da8f54dbc.tar.xz
yuzu-53b321c945d7e6782a6011b7ee55035da8f54dbc.tar.zst
yuzu-53b321c945d7e6782a6011b7ee55035da8f54dbc.zip
Diffstat (limited to '')
-rw-r--r--src/hid_core/resources/npad/npad_vibration.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/hid_core/resources/npad/npad_vibration.h b/src/hid_core/resources/npad/npad_vibration.h
index d5a95f2a0..6412ca4ab 100644
--- a/src/hid_core/resources/npad/npad_vibration.h
+++ b/src/hid_core/resources/npad/npad_vibration.h
@@ -8,6 +8,10 @@
#include "common/common_types.h"
#include "core/hle/result.h"
+namespace Service::Set {
+class ISystemSettingsServer;
+}
+
namespace Service::HID {
class NpadVibration final {
@@ -18,6 +22,7 @@ public:
Result Activate();
Result Deactivate();
+ Result SetSettingsService(std::shared_ptr<Service::Set::ISystemSettingsServer> settings);
Result SetVibrationMasterVolume(f32 master_volume);
Result GetVibrationVolume(f32& out_volume) const;
Result GetVibrationMasterVolume(f32& out_volume) const;
@@ -31,6 +36,8 @@ private:
f32 volume{};
u64 session_aruid{};
mutable std::mutex mutex;
+
+ std::shared_ptr<Service::Set::ISystemSettingsServer> m_set_sys;
};
} // namespace Service::HID