summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2022-12-06 00:11:17 +0100
committerLioncash <mathew1800@gmail.com>2022-12-06 00:15:19 +0100
commit4255e30722ff000a8dc15c1842cee014cdc32291 (patch)
tree3127dc6d4495dcf5b00eb246192ddac81801123c
parentMerge pull request #6833 from abouvier/unbundle (diff)
downloadyuzu-4255e30722ff000a8dc15c1842cee014cdc32291.tar
yuzu-4255e30722ff000a8dc15c1842cee014cdc32291.tar.gz
yuzu-4255e30722ff000a8dc15c1842cee014cdc32291.tar.bz2
yuzu-4255e30722ff000a8dc15c1842cee014cdc32291.tar.lz
yuzu-4255e30722ff000a8dc15c1842cee014cdc32291.tar.xz
yuzu-4255e30722ff000a8dc15c1842cee014cdc32291.tar.zst
yuzu-4255e30722ff000a8dc15c1842cee014cdc32291.zip
Diffstat (limited to '')
-rw-r--r--src/core/hid/emulated_console.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/hid/emulated_console.cpp b/src/core/hid/emulated_console.cpp
index b6c8cc58d..a896a5ad8 100644
--- a/src/core/hid/emulated_console.cpp
+++ b/src/core/hid/emulated_console.cpp
@@ -37,7 +37,7 @@ void EmulatedConsole::SetTouchParams() {
touchscreen_param.Set("axis_x", i * 2);
touchscreen_param.Set("axis_y", (i * 2) + 1);
touchscreen_param.Set("button", i);
- touch_params[index++] = touchscreen_param;
+ touch_params[index++] = std::move(touchscreen_param);
}
const auto button_index =
@@ -59,7 +59,7 @@ void EmulatedConsole::SetTouchParams() {
touch_button_params.Set("button", params.Serialize());
touch_button_params.Set("x", x);
touch_button_params.Set("y", y);
- touch_params[index] = touch_button_params;
+ touch_params[index] = std::move(touch_button_params);
index++;
}
}
@@ -131,7 +131,7 @@ Common::ParamPackage EmulatedConsole::GetMotionParam() const {
}
void EmulatedConsole::SetMotionParam(Common::ParamPackage param) {
- motion_params = param;
+ motion_params = std::move(param);
ReloadInput();
}
@@ -284,7 +284,7 @@ void EmulatedConsole::TriggerOnChange(ConsoleTriggerType type) {
int EmulatedConsole::SetCallback(ConsoleUpdateCallback update_callback) {
std::scoped_lock lock{callback_mutex};
- callback_list.insert_or_assign(last_callback_key, update_callback);
+ callback_list.insert_or_assign(last_callback_key, std::move(update_callback));
return last_callback_key++;
}