Add a fast-forward command

This commit is contained in:
2025-03-24 23:22:47 -04:00
parent 4a3385f04c
commit caf3a9426e
8 changed files with 325 additions and 145 deletions
+6 -2
View File
@@ -109,6 +109,10 @@ impl GameWindow {
self.client.send_command(EmulatorCommand::FrameAdvance);
}
}
Command::FastForward(speed) => {
self.client
.send_command(EmulatorCommand::SetSpeed(speed as f64));
}
}
}
@@ -358,8 +362,8 @@ impl GameWindow {
ui.close_menu();
}
});
if ui.button("Key Shortcuts").clicked() {
self.proxy.send_event(UserEvent::OpenShortcuts).unwrap();
if ui.button("Hotkeys").clicked() {
self.proxy.send_event(UserEvent::OpenHotkeys).unwrap();
ui.close_menu();
}
}