Skip to content
Permalink
Browse files

ControllerEmu: Zero the center of a ReshapableInput when calibrating

  • Loading branch information...
artemist committed May 18, 2019
1 parent 99cf9a5 commit e5683988c08d878d401b12e05a21ec6e5bf201a6
Showing with 4 additions and 1 deletion.
  1. +4 −1 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;

0 comments on commit e568398

Please sign in to comment.
You can’t perform that action at this time.