diff options
author | Lioncash <mathew1800@gmail.com> | 2020-08-29 03:14:51 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2020-08-29 03:14:54 +0200 |
commit | f2a680ca893f29fc35135986ad56b961205d610e (patch) | |
tree | 27e58fcd815fa2228496a3040188cc987fbfff04 /src/input_common | |
parent | sdl_impl: Make use of insert_or_assign() where applicable (diff) | |
download | yuzu-f2a680ca893f29fc35135986ad56b961205d610e.tar yuzu-f2a680ca893f29fc35135986ad56b961205d610e.tar.gz yuzu-f2a680ca893f29fc35135986ad56b961205d610e.tar.bz2 yuzu-f2a680ca893f29fc35135986ad56b961205d610e.tar.lz yuzu-f2a680ca893f29fc35135986ad56b961205d610e.tar.xz yuzu-f2a680ca893f29fc35135986ad56b961205d610e.tar.zst yuzu-f2a680ca893f29fc35135986ad56b961205d610e.zip |
Diffstat (limited to 'src/input_common')
-rw-r--r-- | src/input_common/sdl/sdl_impl.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/input_common/sdl/sdl_impl.cpp b/src/input_common/sdl/sdl_impl.cpp index 85fcd457c..8d83184d2 100644 --- a/src/input_common/sdl/sdl_impl.cpp +++ b/src/input_common/sdl/sdl_impl.cpp @@ -577,7 +577,7 @@ Common::ParamPackage BuildAnalogParamPackageForButton(int port, std::string guid float value = 0.1f) { Common::ParamPackage params({{"engine", "sdl"}}); params.Set("port", port); - params.Set("guid", guid); + params.Set("guid", std::move(guid)); params.Set("axis", axis); if (value > 0) { params.Set("direction", "+"); @@ -592,7 +592,7 @@ Common::ParamPackage BuildAnalogParamPackageForButton(int port, std::string guid Common::ParamPackage BuildButtonParamPackageForButton(int port, std::string guid, u8 button) { Common::ParamPackage params({{"engine", "sdl"}}); params.Set("port", port); - params.Set("guid", guid); + params.Set("guid", std::move(guid)); params.Set("button", button); return params; } @@ -601,7 +601,7 @@ Common::ParamPackage BuildHatParamPackageForButton(int port, std::string guid, u Common::ParamPackage params({{"engine", "sdl"}}); params.Set("port", port); - params.Set("guid", guid); + params.Set("guid", std::move(guid)); params.Set("hat", hat); switch (value) { case SDL_HAT_UP: |