diff options
author | liamwhite <liamwhite@users.noreply.github.com> | 2023-05-15 18:03:00 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-15 18:03:00 +0200 |
commit | 9087fe10e91385f705180c1b3048003b85b303ca (patch) | |
tree | 2eee230b67850f63a9cd18f2eae5d6349b977e7c /src/core/hle/service/hid/controllers | |
parent | Merge pull request #10288 from liamwhite/vram-limits (diff) | |
parent | service: hid: Use span instead of vector reference (diff) | |
download | yuzu-9087fe10e91385f705180c1b3048003b85b303ca.tar yuzu-9087fe10e91385f705180c1b3048003b85b303ca.tar.gz yuzu-9087fe10e91385f705180c1b3048003b85b303ca.tar.bz2 yuzu-9087fe10e91385f705180c1b3048003b85b303ca.tar.lz yuzu-9087fe10e91385f705180c1b3048003b85b303ca.tar.xz yuzu-9087fe10e91385f705180c1b3048003b85b303ca.tar.zst yuzu-9087fe10e91385f705180c1b3048003b85b303ca.zip |
Diffstat (limited to 'src/core/hle/service/hid/controllers')
-rw-r--r-- | src/core/hle/service/hid/controllers/npad.cpp | 4 | ||||
-rw-r--r-- | src/core/hle/service/hid/controllers/npad.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/core/hle/service/hid/controllers/npad.cpp b/src/core/hle/service/hid/controllers/npad.cpp index ef4aec4ea..28818c813 100644 --- a/src/core/hle/service/hid/controllers/npad.cpp +++ b/src/core/hle/service/hid/controllers/npad.cpp @@ -979,8 +979,8 @@ void Controller_NPad::VibrateController( } void Controller_NPad::VibrateControllers( - const std::vector<Core::HID::VibrationDeviceHandle>& vibration_device_handles, - const std::vector<Core::HID::VibrationValue>& vibration_values) { + std::span<const Core::HID::VibrationDeviceHandle> vibration_device_handles, + std::span<const Core::HID::VibrationValue> vibration_values) { if (!Settings::values.vibration_enabled.GetValue() && !permit_vibration_session_enabled) { return; } diff --git a/src/core/hle/service/hid/controllers/npad.h b/src/core/hle/service/hid/controllers/npad.h index 9cfe298f1..776411261 100644 --- a/src/core/hle/service/hid/controllers/npad.h +++ b/src/core/hle/service/hid/controllers/npad.h @@ -112,8 +112,8 @@ public: const Core::HID::VibrationValue& vibration_value); void VibrateControllers( - const std::vector<Core::HID::VibrationDeviceHandle>& vibration_device_handles, - const std::vector<Core::HID::VibrationValue>& vibration_values); + std::span<const Core::HID::VibrationDeviceHandle> vibration_device_handles, + std::span<const Core::HID::VibrationValue> vibration_values); Core::HID::VibrationValue GetLastVibration( const Core::HID::VibrationDeviceHandle& vibration_device_handle) const; |