mirror of
https://github.com/JanNeuendorf/SVC16.git
synced 2025-06-04 18:45:27 +00:00
Indicate paused state in window title
This commit is contained in:
parent
4d1d911a79
commit
c52aa24609
@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "svc16"
|
name = "svc16"
|
||||||
version = "0.4.1"
|
version = "0.4.2"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
authors = ["Jan Neuendorf"]
|
authors = ["Jan Neuendorf"]
|
||||||
description = "An emulator for a simple virtual computer"
|
description = "An emulator for a simple virtual computer"
|
||||||
|
@ -62,6 +62,11 @@ fn main() -> Result<()> {
|
|||||||
}
|
}
|
||||||
if input.key_pressed_logical(Key::Character("p")) {
|
if input.key_pressed_logical(Key::Character("p")) {
|
||||||
paused = !paused;
|
paused = !paused;
|
||||||
|
if paused {
|
||||||
|
window.set_title("SVC16 (paused)");
|
||||||
|
} else {
|
||||||
|
window.set_title("SVC16");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if input.key_pressed_logical(Key::Character("r")) {
|
if input.key_pressed_logical(Key::Character("r")) {
|
||||||
engine = Engine::new(initial_state.clone());
|
engine = Engine::new(initial_state.clone());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user