summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/hid/controllers
diff options
context:
space:
mode:
authorliamwhite <liamwhite@users.noreply.github.com>2023-05-15 18:03:00 +0200
committerGitHub <noreply@github.com>2023-05-15 18:03:00 +0200
commit9087fe10e91385f705180c1b3048003b85b303ca (patch)
tree2eee230b67850f63a9cd18f2eae5d6349b977e7c /src/core/hle/service/hid/controllers
parentMerge pull request #10288 from liamwhite/vram-limits (diff)
parentservice: hid: Use span instead of vector reference (diff)
downloadyuzu-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.cpp4
-rw-r--r--src/core/hle/service/hid/controllers/npad.h4
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;