diff options
| author | Lioncash <mathew1800@gmail.com> | 2021-12-13 09:09:03 -0500 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2021-12-13 09:16:10 -0500 |
| commit | f41c22d30f016d5599ea1fde9eceb43cab6d6be0 (patch) | |
| tree | 4fbdcc84b82ff753306647b309c8a0b128af02f0 /src/input_common/input_engine.h | |
| parent | 54e164d9de57819ee3d3b9901e24a9e184e2804b (diff) | |
input_engine: Pass VibrationStatus by const reference in SetRumble()
Avoids creating copies of the struct where not necessary.
Diffstat (limited to 'src/input_common/input_engine.h')
| -rw-r--r-- | src/input_common/input_engine.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/input_common/input_engine.h b/src/input_common/input_engine.h index b21adfabfa..15cd5fa2e5 100644 --- a/src/input_common/input_engine.h +++ b/src/input_common/input_engine.h @@ -119,7 +119,7 @@ public: // Sets rumble to a controller virtual Common::Input::VibrationError SetRumble( [[maybe_unused]] const PadIdentifier& identifier, - [[maybe_unused]] const Common::Input::VibrationStatus vibration) { + [[maybe_unused]] const Common::Input::VibrationStatus& vibration) { return Common::Input::VibrationError::NotSupported; } |
