core: hid: Allow to calibrate gyro sensor

This commit is contained in:
Narr the Reg
2023-05-08 11:17:27 -06:00
parent b70a205a96
commit 97bd6d6418
5 changed files with 43 additions and 1 deletions

View File

@ -479,6 +479,9 @@ ConfigureInputPlayer::ConfigureInputPlayer(QWidget* parent, std::size_t player_i
param.Set("threshold", new_threshold / 1000.0f);
emulated_controller->SetMotionParam(motion_id, param);
});
context_menu.addAction(tr("Calibrate sensor"), [&] {
emulated_controller->StartMotionCalibration();
});
}
context_menu.exec(motion_map[motion_id]->mapToGlobal(menu_location));
});