Toggle the Comet when pressing F12
This commit is contained in:
parent
fc53a97831
commit
b7c65c877d
9 changed files with 125 additions and 35 deletions
|
|
@ -716,6 +716,26 @@ async fn run_instance<A, E, C>(
|
|||
break;
|
||||
}
|
||||
|
||||
#[cfg(feature = "debug")]
|
||||
match window_event {
|
||||
winit::event::WindowEvent::KeyboardInput {
|
||||
event:
|
||||
winit::event::KeyEvent {
|
||||
logical_key:
|
||||
winit::keyboard::Key::Named(
|
||||
winit::keyboard::NamedKey::F12,
|
||||
),
|
||||
state: winit::event::ElementState::Pressed,
|
||||
repeat: false,
|
||||
..
|
||||
},
|
||||
..
|
||||
} => {
|
||||
crate::debug::toggle_comet();
|
||||
}
|
||||
_ => {}
|
||||
}
|
||||
|
||||
state.update(&window, &window_event);
|
||||
|
||||
if let Some(event) = conversion::window_event(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue