使用ds5原始的音量调节范围

This commit is contained in:
awalol
2026-05-07 22:28:29 +08:00
parent 33c44907b6
commit 8bb0c816df
4 changed files with 33 additions and 12 deletions
+2 -2
View File
@@ -50,8 +50,8 @@ void config_valid() {
body->haptics_gain = 1.0f;
printf("[Config] Haptics Gain value is invalid\n");
}
if (std::isnan(body->speaker_volume) || body->speaker_volume < 1.0f || body->speaker_volume > 2.0f) {
body->speaker_volume = 2.0f;
if (std::isnan(body->speaker_volume) || body->speaker_volume < -100 || body->speaker_volume > 0) {
body->speaker_volume = -100;
printf("[Config] Speaker Volume is invalid\n");
}
if (body->inactive_time < 5 || body->inactive_time > 60) {