diff options
| author | 2021-12-13 09:20:55 -0500 | |
|---|---|---|
| committer | 2021-12-13 09:20:58 -0500 | |
| commit | 985599e485cbee94eb99d0bfcfdbec5345968b15 (patch) | |
| tree | 6474358820f1029658ff76beca5454e1da322d2a /src/input_common/input_poller.cpp | |
| parent | input_engine: Pass VibrationStatus by const reference in SetRumble() (diff) | |
| download | yuzu-985599e485cbee94eb99d0bfcfdbec5345968b15.tar.gz yuzu-985599e485cbee94eb99d0bfcfdbec5345968b15.tar.xz yuzu-985599e485cbee94eb99d0bfcfdbec5345968b15.zip | |
input_engine: Pass LedStatus by const reference
Avoids copies where reasonably applicable
Diffstat (limited to '')
| -rw-r--r-- | src/input_common/input_poller.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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: | |||
| 668 | explicit OutputFromIdentifier(PadIdentifier identifier_, InputEngine* input_engine_) | 668 | explicit OutputFromIdentifier(PadIdentifier identifier_, InputEngine* input_engine_) |
| 669 | : identifier(identifier_), input_engine(input_engine_) {} | 669 | : identifier(identifier_), input_engine(input_engine_) {} |
| 670 | 670 | ||
| 671 | virtual void SetLED(Common::Input::LedStatus led_status) { | 671 | virtual void SetLED(const Common::Input::LedStatus& led_status) { |
| 672 | input_engine->SetLeds(identifier, led_status); | 672 | input_engine->SetLeds(identifier, led_status); |
| 673 | } | 673 | } |
| 674 | 674 | ||