mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
ControllerEmu: Zero the center of a ReshapableInput when calibrating
This commit is contained in:
@ -777,7 +777,10 @@ void CalibrationWidget::SetupActions()
|
|||||||
const auto center_action = new QAction(tr("Center and Calibrate"), this);
|
const auto center_action = new QAction(tr("Center and Calibrate"), this);
|
||||||
const auto reset_action = new QAction(tr("Reset"), 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]() {
|
connect(center_action, &QAction::triggered, [this]() {
|
||||||
StartCalibration();
|
StartCalibration();
|
||||||
m_is_centering = true;
|
m_is_centering = true;
|
||||||
|
Reference in New Issue
Block a user