summaryrefslogtreecommitdiffstats
path: root/src/input_common
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2021-12-13 15:20:55 +0100
committerLioncash <mathew1800@gmail.com>2021-12-13 15:20:58 +0100
commit985599e485cbee94eb99d0bfcfdbec5345968b15 (patch)
tree6474358820f1029658ff76beca5454e1da322d2a /src/input_common
parentinput_engine: Pass VibrationStatus by const reference in SetRumble() (diff)
downloadyuzu-985599e485cbee94eb99d0bfcfdbec5345968b15.tar
yuzu-985599e485cbee94eb99d0bfcfdbec5345968b15.tar.gz
yuzu-985599e485cbee94eb99d0bfcfdbec5345968b15.tar.bz2
yuzu-985599e485cbee94eb99d0bfcfdbec5345968b15.tar.lz
yuzu-985599e485cbee94eb99d0bfcfdbec5345968b15.tar.xz
yuzu-985599e485cbee94eb99d0bfcfdbec5345968b15.tar.zst
yuzu-985599e485cbee94eb99d0bfcfdbec5345968b15.zip
Diffstat (limited to 'src/input_common')
-rw-r--r--src/input_common/input_engine.h2
-rw-r--r--src/input_common/input_poller.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/input_common/input_engine.h b/src/input_common/input_engine.h
index 15cd5fa2e..78e7046c7 100644
--- a/src/input_common/input_engine.h
+++ b/src/input_common/input_engine.h
@@ -114,7 +114,7 @@ public:
// Sets a led pattern for a controller
virtual void SetLeds([[maybe_unused]] const PadIdentifier& identifier,
- [[maybe_unused]] const Common::Input::LedStatus led_status) {}
+ [[maybe_unused]] const Common::Input::LedStatus& led_status) {}
// Sets rumble to a controller
virtual Common::Input::VibrationError SetRumble(
diff --git a/src/input_common/input_poller.cpp b/src/input_common/input_poller.cpp
index de63f36b3..c56d5e0c2 100644
--- a/src/input_common/input_poller.cpp
+++ b/src/input_common/input_poller.cpp
@@ -668,7 +668,7 @@ public:
explicit OutputFromIdentifier(PadIdentifier identifier_, InputEngine* input_engine_)
: identifier(identifier_), input_engine(input_engine_) {}
- virtual void SetLED(Common::Input::LedStatus led_status) {
+ virtual void SetLED(const Common::Input::LedStatus& led_status) {
input_engine->SetLeds(identifier, led_status);
}