|
|
@@ -133,6 +133,10 @@ void ConfigureInput::Initialize(InputCommon::InputSubsystem* input_subsystem) {
|
|
|
CallConfigureDialog<ConfigureMotionTouch>(*this, input_subsystem);
|
|
|
});
|
|
|
|
|
|
+ connect(ui->motionButton, &QPushButton::clicked, [this, input_subsystem] {
|
|
|
+ CallConfigureDialog<ConfigureMotionTouch>(*this, input_subsystem);
|
|
|
+ });
|
|
|
+
|
|
|
connect(ui->buttonClearAll, &QPushButton::clicked, [this] { ClearAll(); });
|
|
|
connect(ui->buttonRestoreDefaults, &QPushButton::clicked, [this] { RestoreDefaults(); });
|
|
|
|
|
|
@@ -159,6 +163,7 @@ void ConfigureInput::ApplyConfiguration() {
|
|
|
OnDockedModeChanged(pre_docked_mode, Settings::values.use_docked_mode);
|
|
|
|
|
|
Settings::values.vibration_enabled = ui->vibrationGroup->isChecked();
|
|
|
+ Settings::values.motion_enabled = ui->motionGroup->isChecked();
|
|
|
}
|
|
|
|
|
|
void ConfigureInput::changeEvent(QEvent* event) {
|
|
|
@@ -179,6 +184,7 @@ void ConfigureInput::LoadConfiguration() {
|
|
|
Settings::ControllerType::Handheld);
|
|
|
|
|
|
ui->vibrationGroup->setChecked(Settings::values.vibration_enabled);
|
|
|
+ ui->motionGroup->setChecked(Settings::values.motion_enabled);
|
|
|
}
|
|
|
|
|
|
void ConfigureInput::LoadPlayerControllerIndices() {
|
|
|
@@ -205,6 +211,7 @@ void ConfigureInput::RestoreDefaults() {
|
|
|
ui->radioDocked->setChecked(true);
|
|
|
ui->radioUndocked->setChecked(false);
|
|
|
ui->vibrationGroup->setChecked(true);
|
|
|
+ ui->motionGroup->setChecked(true);
|
|
|
}
|
|
|
|
|
|
void ConfigureInput::UpdateDockedState(bool is_handheld) {
|