This commit is contained in:
Quaternions 2023-10-02 03:03:07 -07:00
parent c47020c149
commit 79262ce3b4

View File

@ -877,7 +877,7 @@ impl framework::Example for GraphicsData {
57=>Some(InputInstruction::Jump(s)),//Space 57=>Some(InputInstruction::Jump(s)),//Space
44=>Some(InputInstruction::Zoom(s)),//Z 44=>Some(InputInstruction::Zoom(s)),//Z
19=>if s{Some(InputInstruction::Reset)}else{None},//R 19=>if s{Some(InputInstruction::Reset)}else{None},//R
1 => { 01=>{//Esc
if s{ if s{
self.manual_mouse_lock=false; self.manual_mouse_lock=false;
match window.set_cursor_grab(winit::window::CursorGrabMode::None){ match window.set_cursor_grab(winit::window::CursorGrabMode::None){
@ -919,8 +919,7 @@ impl framework::Example for GraphicsData {
None None
}, },
_ => {println!("scancode {}",keycode);None}, _ => {println!("scancode {}",keycode);None},
} }{
{
self.physics.run(time); self.physics.run(time);
self.physics.process_instruction(TimedInstruction{ self.physics.process_instruction(TimedInstruction{
time, time,