Indicate paused state in window title

This commit is contained in:
jan 2024-12-19 14:37:10 +01:00
parent 4d1d911a79
commit c52aa24609
2 changed files with 6 additions and 1 deletions

View File

@ -1,6 +1,6 @@
[package]
name = "svc16"
version = "0.4.1"
version = "0.4.2"
edition = "2021"
authors = ["Jan Neuendorf"]
description = "An emulator for a simple virtual computer"

View File

@ -62,6 +62,11 @@ fn main() -> Result<()> {
}
if input.key_pressed_logical(Key::Character("p")) {
paused = !paused;
if paused {
window.set_title("SVC16 (paused)");
} else {
window.set_title("SVC16");
}
}
if input.key_pressed_logical(Key::Character("r")) {
engine = Engine::new(initial_state.clone());