Skip to content

Commit a403a45

Browse files
committed
InputManager: add vibration options to dialog
1 parent fa2f6f3 commit a403a45

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/hooks_forcefeedback.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ class Vibration : public Hook
6565

6666
bool validate() override
6767
{
68-
return Settings::VibrationMode != 0;
68+
return Settings::VibrationMode != 0 || Settings::UseNewInput;
6969
}
7070

7171
bool apply() override

src/input_manager.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1424,6 +1424,11 @@ class InputManager
14241424
}
14251425
}
14261426

1427+
const char* vibrationModes[] = { "Disabled", "Enabled", "Swap L/R", "Merge L/R" };
1428+
ImGui::Combo("Vibration Mode", &Settings::VibrationMode, vibrationModes, IM_ARRAYSIZE(vibrationModes));
1429+
ImGui::SliderInt("Vibration Strength", &Settings::VibrationStrength, 0, 10);
1430+
ImGui::Combo("Impulse Vibration", &Settings::ImpulseVibrationMode, vibrationModes, IM_ARRAYSIZE(vibrationModes));
1431+
14271432
int deadzonePercent = Settings::SteeringDeadZone * 100.f;
14281433
if (ImGui::SliderInt("Steering Deadzone", &deadzonePercent, 5, 20, "%d%%"))
14291434
Settings::SteeringDeadZone = float(deadzonePercent) / 100.f;

0 commit comments

Comments
 (0)