ControllerEmu: Zero the center of a ReshapableInput when calibrating

This commit is contained in:
Artemis Tosini 2019-05-18 19:32:48 +00:00
parent 99cf9a57fc
commit e5683988c0
No known key found for this signature in database
GPG Key ID: EE5227935FE3FF18
1 changed files with 4 additions and 1 deletions

View File

@ -777,7 +777,10 @@ void CalibrationWidget::SetupActions()
const auto center_action = new QAction(tr("Center and Calibrate"), this);
const auto reset_action = new QAction(tr("Reset"), this);
connect(calibrate_action, &QAction::triggered, [this]() { StartCalibration(); });
connect(calibrate_action, &QAction::triggered, [this]() {
StartCalibration();
m_input.SetCenter({0, 0});
});
connect(center_action, &QAction::triggered, [this]() {
StartCalibration();
m_is_centering = true;