diff options
author | Narr the Reg <juangerman-13@hotmail.com> | 2024-02-14 04:08:30 +0100 |
---|---|---|
committer | Narr the Reg <juangerman-13@hotmail.com> | 2024-02-14 19:40:10 +0100 |
commit | caf16982d93f0658051907dedd4437f94148d4c2 (patch) | |
tree | feff5c1512ee47dc195718eeaa996a9d7b8c30ef /src/hid_core/resources/npad | |
parent | Merge pull request #12996 from german77/settings-ipc (diff) | |
download | yuzu-caf16982d93f0658051907dedd4437f94148d4c2.tar yuzu-caf16982d93f0658051907dedd4437f94148d4c2.tar.gz yuzu-caf16982d93f0658051907dedd4437f94148d4c2.tar.bz2 yuzu-caf16982d93f0658051907dedd4437f94148d4c2.tar.lz yuzu-caf16982d93f0658051907dedd4437f94148d4c2.tar.xz yuzu-caf16982d93f0658051907dedd4437f94148d4c2.tar.zst yuzu-caf16982d93f0658051907dedd4437f94148d4c2.zip |
Diffstat (limited to 'src/hid_core/resources/npad')
-rw-r--r-- | src/hid_core/resources/npad/npad_vibration.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/hid_core/resources/npad/npad_vibration.cpp b/src/hid_core/resources/npad/npad_vibration.cpp index 02b1f0290..4c103889a 100644 --- a/src/hid_core/resources/npad/npad_vibration.cpp +++ b/src/hid_core/resources/npad/npad_vibration.cpp @@ -15,7 +15,7 @@ Result NpadVibration::Activate() { std::scoped_lock lock{mutex}; f32 master_volume = 1.0f; - m_set_sys->GetVibrationMasterVolume(master_volume); + m_set_sys->GetVibrationMasterVolume(&master_volume); if (master_volume < 0.0f || master_volume > 1.0f) { return ResultVibrationStrengthOutOfRange; } @@ -57,7 +57,7 @@ Result NpadVibration::GetVibrationMasterVolume(f32& out_volume) const { std::scoped_lock lock{mutex}; f32 master_volume = 1.0f; - m_set_sys->GetVibrationMasterVolume(master_volume); + m_set_sys->GetVibrationMasterVolume(&master_volume); if (master_volume < 0.0f || master_volume > 1.0f) { return ResultVibrationStrengthOutOfRange; } @@ -77,7 +77,7 @@ Result NpadVibration::EndPermitVibrationSession() { std::scoped_lock lock{mutex}; f32 master_volume = 1.0f; - m_set_sys->GetVibrationMasterVolume(master_volume); + m_set_sys->GetVibrationMasterVolume(&master_volume); if (master_volume < 0.0f || master_volume > 1.0f) { return ResultVibrationStrengthOutOfRange; } |