summaryrefslogtreecommitdiff
path: root/src/input_common/input_engine.h
diff options
context:
space:
mode:
authorGravatar Lioncash2021-12-13 09:09:03 -0500
committerGravatar Lioncash2021-12-13 09:16:10 -0500
commit38f3442ea56a3ac9447924c015c2a9ade0f5bb83 (patch)
tree4fbdcc84b82ff753306647b309c8a0b128af02f0 /src/input_common/input_engine.h
parentinput_engine: std::move engine name where applicable (diff)
downloadyuzu-38f3442ea56a3ac9447924c015c2a9ade0f5bb83.tar.gz
yuzu-38f3442ea56a3ac9447924c015c2a9ade0f5bb83.tar.xz
yuzu-38f3442ea56a3ac9447924c015c2a9ade0f5bb83.zip
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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/input_common/input_engine.h b/src/input_common/input_engine.h
index b21adfabf..15cd5fa2e 100644
--- a/src/input_common/input_engine.h
+++ b/src/input_common/input_engine.h
@@ -119,7 +119,7 @@ public:
119 // Sets rumble to a controller 119 // Sets rumble to a controller
120 virtual Common::Input::VibrationError SetRumble( 120 virtual Common::Input::VibrationError SetRumble(
121 [[maybe_unused]] const PadIdentifier& identifier, 121 [[maybe_unused]] const PadIdentifier& identifier,
122 [[maybe_unused]] const Common::Input::VibrationStatus vibration) { 122 [[maybe_unused]] const Common::Input::VibrationStatus& vibration) {
123 return Common::Input::VibrationError::NotSupported; 123 return Common::Input::VibrationError::NotSupported;
124 } 124 }
125 125