Support emulating low battery

This commit is contained in:
2026-08-15 00:52:40 -04:00
parent 3a00497942
commit 762f43fd42
4 changed files with 35 additions and 0 deletions
+3
View File
@@ -141,6 +141,8 @@ pub struct SimConfig {
#[serde(default = "default_audio_enabled")]
pub audio_enabled: bool,
#[serde(default)]
pub low_battery: bool,
#[serde(default)]
pub position: Option<Pos2>,
}
@@ -154,6 +156,7 @@ impl SimConfig {
colors: COLOR_PRESETS[0],
dimensions: DisplayMode::Anaglyph.proportions() + Vec2::new(0.0, 22.0),
audio_enabled: true,
low_battery: false,
position: None,
}
}