diff options
| author | 2021-12-13 09:09:03 -0500 | |
|---|---|---|
| committer | 2021-12-13 09:16:10 -0500 | |
| commit | 38f3442ea56a3ac9447924c015c2a9ade0f5bb83 (patch) | |
| tree | 4fbdcc84b82ff753306647b309c8a0b128af02f0 /src/input_common/drivers/gc_adapter.h | |
| parent | input_engine: std::move engine name where applicable (diff) | |
| download | yuzu-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/drivers/gc_adapter.h')
| -rw-r--r-- | src/input_common/drivers/gc_adapter.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/input_common/drivers/gc_adapter.h b/src/input_common/drivers/gc_adapter.h index 3c4f0396c..7ce1912a3 100644 --- a/src/input_common/drivers/gc_adapter.h +++ b/src/input_common/drivers/gc_adapter.h | |||
| @@ -28,7 +28,7 @@ public: | |||
| 28 | ~GCAdapter() override; | 28 | ~GCAdapter() override; |
| 29 | 29 | ||
| 30 | Common::Input::VibrationError SetRumble( | 30 | Common::Input::VibrationError SetRumble( |
| 31 | const PadIdentifier& identifier, const Common::Input::VibrationStatus vibration) override; | 31 | const PadIdentifier& identifier, const Common::Input::VibrationStatus& vibration) override; |
| 32 | 32 | ||
| 33 | /// Used for automapping features | 33 | /// Used for automapping features |
| 34 | std::vector<Common::ParamPackage> GetInputDevices() const override; | 34 | std::vector<Common::ParamPackage> GetInputDevices() const override; |