diff options
Diffstat (limited to '')
| -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 | |||
| 577 | float value = 0.1f) { | 577 | float value = 0.1f) { |
| 578 | Common::ParamPackage params({{"engine", "sdl"}}); | 578 | Common::ParamPackage params({{"engine", "sdl"}}); |
| 579 | params.Set("port", port); | 579 | params.Set("port", port); |
| 580 | params.Set("guid", guid); | 580 | params.Set("guid", std::move(guid)); |
| 581 | params.Set("axis", axis); | 581 | params.Set("axis", axis); |
| 582 | if (value > 0) { | 582 | if (value > 0) { |
| 583 | params.Set("direction", "+"); | 583 | params.Set("direction", "+"); |
| @@ -592,7 +592,7 @@ Common::ParamPackage BuildAnalogParamPackageForButton(int port, std::string guid | |||
| 592 | Common::ParamPackage BuildButtonParamPackageForButton(int port, std::string guid, u8 button) { | 592 | Common::ParamPackage BuildButtonParamPackageForButton(int port, std::string guid, u8 button) { |
| 593 | Common::ParamPackage params({{"engine", "sdl"}}); | 593 | Common::ParamPackage params({{"engine", "sdl"}}); |
| 594 | params.Set("port", port); | 594 | params.Set("port", port); |
| 595 | params.Set("guid", guid); | 595 | params.Set("guid", std::move(guid)); |
| 596 | params.Set("button", button); | 596 | params.Set("button", button); |
| 597 | return params; | 597 | return params; |
| 598 | } | 598 | } |
| @@ -601,7 +601,7 @@ Common::ParamPackage BuildHatParamPackageForButton(int port, std::string guid, u | |||
| 601 | Common::ParamPackage params({{"engine", "sdl"}}); | 601 | Common::ParamPackage params({{"engine", "sdl"}}); |
| 602 | 602 | ||
| 603 | params.Set("port", port); | 603 | params.Set("port", port); |
| 604 | params.Set("guid", guid); | 604 | params.Set("guid", std::move(guid)); |
| 605 | params.Set("hat", hat); | 605 | params.Set("hat", hat); |
| 606 | switch (value) { | 606 | switch (value) { |
| 607 | case SDL_HAT_UP: | 607 | case SDL_HAT_UP: |