configure_motion_touch: do not move engine parameter (#6208)

fixes an error stemmed from miscommunication
This commit is contained in:
Vitor K 2022-12-06 21:52:25 -03:00 committed by GitHub
parent d1171328c9
commit 0fc177e268
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -354,10 +354,8 @@ void ConfigureMotionTouch::ApplyConfiguration() {
std::string motion_engine = ui->motion_provider->currentData().toString().toStdString();
std::string touch_engine = ui->touch_provider->currentData().toString().toStdString();
Common::ParamPackage motion_param{}, touch_param{};
motion_param.Set("engine", std::move(motion_engine));
touch_param.Set("engine", std::move(touch_engine));
Common::ParamPackage motion_param{};
motion_param.Set("engine", motion_engine);
if (motion_engine == "motion_emu") {
motion_param.Set("sensitivity", static_cast<float>(ui->motion_sensitivity->value()));
} else if (motion_engine == "sdl") {
@ -365,6 +363,8 @@ void ConfigureMotionTouch::ApplyConfiguration() {
motion_param.Set("port", port);
}
Common::ParamPackage touch_param{};
touch_param.Set("engine", touch_engine);
if (touch_engine == "cemuhookudp") {
touch_param.Set("min_x", min_x);
touch_param.Set("min_y", min_y);