mirror of
https://github.com/Lime3DS/Lime3DS.git
synced 2024-11-27 12:04:16 +01:00
configure_motion_touch: do not move engine parameter (#6208)
fixes an error stemmed from miscommunication
This commit is contained in:
parent
d1171328c9
commit
0fc177e268
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user