From e5683988c08d878d401b12e05a21ec6e5bf201a6 Mon Sep 17 00:00:00 2001 From: Artemis Tosini Date: Sat, 18 May 2019 19:32:48 +0000 Subject: [PATCH] ControllerEmu: Zero the center of a ReshapableInput when calibrating --- Source/Core/DolphinQt/Config/Mapping/MappingIndicator.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Source/Core/DolphinQt/Config/Mapping/MappingIndicator.cpp b/Source/Core/DolphinQt/Config/Mapping/MappingIndicator.cpp index ef807b9d8f..51a1fc152b 100644 --- a/Source/Core/DolphinQt/Config/Mapping/MappingIndicator.cpp +++ b/Source/Core/DolphinQt/Config/Mapping/MappingIndicator.cpp @@ -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;