diff options
author | Lioncash <mathew1800@gmail.com> | 2021-12-13 15:20:55 +0100 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2021-12-13 15:20:58 +0100 |
commit | 985599e485cbee94eb99d0bfcfdbec5345968b15 (patch) | |
tree | 6474358820f1029658ff76beca5454e1da322d2a | |
parent | input_engine: Pass VibrationStatus by const reference in SetRumble() (diff) | |
download | yuzu-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 '')
-rw-r--r-- | src/common/input.h | 2 | ||||
-rw-r--r-- | src/input_common/input_engine.h | 2 | ||||
-rw-r--r-- | src/input_common/input_poller.cpp | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/common/input.h b/src/common/input.h index 12d5d976f..0b92449bc 100644 --- a/src/common/input.h +++ b/src/common/input.h @@ -266,7 +266,7 @@ class OutputDevice { public: virtual ~OutputDevice() = default; - virtual void SetLED([[maybe_unused]] LedStatus led_status) {} + virtual void SetLED([[maybe_unused]] const LedStatus& led_status) {} virtual VibrationError SetVibration([[maybe_unused]] const VibrationStatus& vibration_status) { return VibrationError::NotSupported; 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); } |