fix(main): reorder process_input before logic_step
This commit is contained in:
@@ -107,6 +107,7 @@ fn main() -> Result<()> {
|
|||||||
wayland.frame(sk);
|
wayland.frame(sk);
|
||||||
destroy_queue::clear();
|
destroy_queue::clear();
|
||||||
|
|
||||||
|
input::process_input();
|
||||||
nodes::root::Root::logic_step(sk.time_elapsed());
|
nodes::root::Root::logic_step(sk.time_elapsed());
|
||||||
drawable::draw(sk, draw_ctx);
|
drawable::draw(sk, draw_ctx);
|
||||||
|
|
||||||
@@ -121,7 +122,6 @@ fn main() -> Result<()> {
|
|||||||
controllers[0].update(sk);
|
controllers[0].update(sk);
|
||||||
controllers[1].update(sk);
|
controllers[1].update(sk);
|
||||||
}
|
}
|
||||||
input::process_input();
|
|
||||||
|
|
||||||
wayland.make_context_current();
|
wayland.make_context_current();
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user