aboutsummaryrefslogtreecommitdiff
path: root/src/hid_core/resources/npad/npad_vibration.h
diff options
context:
space:
mode:
authorNarr the Reg <juangerman-13@hotmail.com>2024-01-22 23:30:34 -0600
committerNarr the Reg <juangerman-13@hotmail.com>2024-01-25 17:14:18 -0600
commit53b321c945d7e6782a6011b7ee55035da8f54dbc (patch)
treeab538a4d934f71453bd4b16a929599ae5f525668 /src/hid_core/resources/npad/npad_vibration.h
parente04368ad7cf4c8d8820ef4da451d9954ff38cb2d (diff)
service: set: Implement more settings functions for Qlaunch
Diffstat (limited to 'src/hid_core/resources/npad/npad_vibration.h')
-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