diff options
| author | 2021-12-13 09:05:23 -0500 | |
|---|---|---|
| committer | 2021-12-13 09:05:50 -0500 | |
| commit | 2b92d22bda767c7c723935c357bea474f8e2d2f8 (patch) | |
| tree | e732bb3b2062562c031ea54937514ca34ab6e6b1 /src/input_common/drivers/gc_adapter.h | |
| parent | input_engine: Remove callback clearing in constructor (diff) | |
| download | yuzu-2b92d22bda767c7c723935c357bea474f8e2d2f8.tar.gz yuzu-2b92d22bda767c7c723935c357bea474f8e2d2f8.tar.xz yuzu-2b92d22bda767c7c723935c357bea474f8e2d2f8.zip | |
input_engine: std::move engine name where applicable
We can allow the name to be moved into, allowing allocations to be
avoided.
Diffstat (limited to 'src/input_common/drivers/gc_adapter.h')
| -rw-r--r-- | src/input_common/drivers/gc_adapter.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/input_common/drivers/gc_adapter.h b/src/input_common/drivers/gc_adapter.h index 8dc51d2e5..3c4f0396c 100644 --- a/src/input_common/drivers/gc_adapter.h +++ b/src/input_common/drivers/gc_adapter.h | |||
| @@ -22,10 +22,10 @@ namespace InputCommon { | |||
| 22 | class LibUSBContext; | 22 | class LibUSBContext; |
| 23 | class LibUSBDeviceHandle; | 23 | class LibUSBDeviceHandle; |
| 24 | 24 | ||
| 25 | class GCAdapter : public InputCommon::InputEngine { | 25 | class GCAdapter : public InputEngine { |
| 26 | public: | 26 | public: |
| 27 | explicit GCAdapter(const std::string& input_engine_); | 27 | explicit GCAdapter(std::string input_engine_); |
| 28 | ~GCAdapter(); | 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; |