Add a fast-forward command
This commit is contained in:
+6
-2
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user