summaryrefslogtreecommitdiff
path: root/engine/src/windowing.rs
diff options
context:
space:
mode:
Diffstat (limited to 'engine/src/windowing.rs')
-rw-r--r--engine/src/windowing.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/engine/src/windowing.rs b/engine/src/windowing.rs
index 3e27075..46f281f 100644
--- a/engine/src/windowing.rs
+++ b/engine/src/windowing.rs
@@ -90,7 +90,7 @@ impl crate::ecs::extension::Extension for Extension
collector.spawn_declared_entity(&PHASE);
- collector.add_system(*PHASE, update_stuff);
+ collector.add_system(*PHASE, update);
collector.add_observer(handle_window_changed);
collector.add_observer(handle_window_removed);
@@ -128,7 +128,7 @@ fn handle_window_creation_ready(
}
#[tracing::instrument(skip_all)]
-fn update_stuff(
+fn update(
mut context: Single<Context>,
mut keyboard: Single<Keyboard>,
mut mouse: Single<Mouse>,
@@ -153,7 +153,7 @@ fn update_stuff(
update_inputs(context, keyboard, mouse, mouse_buttons);
- receive_app_messages(context, &mut actions, world);
+ handle_app_messages(context, &mut actions, world);
if context.shared_state.thread_panicked.load(Ordering::Relaxed) {
cold_path();
@@ -181,7 +181,7 @@ fn update_stuff(
Ok(())
}
-fn receive_app_messages(context: &mut Context, actions: &mut Actions, world: &World)
+fn handle_app_messages(context: &mut Context, actions: &mut Actions, world: &World)
{
let Context {
ref mut windows, ref shared_state, ..