diff options
author | tcmal <me@aria.rip> | 2024-08-25 17:44:24 +0100 |
---|---|---|
committer | tcmal <me@aria.rip> | 2024-08-25 17:44:24 +0100 |
commit | 4f068467c4954fb79e6ce297ae1ac0fdd2bdf16a (patch) | |
tree | 4b3ec44d068f71ab80e8c85a6515a8862407ac56 /stockton-render/src/window.rs | |
parent | 5e6396ed225be9a9991705de10174b3cf085f8f0 (diff) |
WIP refactor(skeleton): type state for context
also some api improvements
closes #2
related: #7
Diffstat (limited to 'stockton-render/src/window.rs')
-rw-r--r-- | stockton-render/src/window.rs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/stockton-render/src/window.rs b/stockton-render/src/window.rs index e6cf7fb..429a3c2 100644 --- a/stockton-render/src/window.rs +++ b/stockton-render/src/window.rs @@ -216,7 +216,7 @@ impl WindowFlow { #[system] /// A system to process the window events sent to renderer by the winit event loop. -pub fn _process_window_events<T: 'static + InputManager, DP: 'static + DrawPass<Singular>>( +pub fn _process_window_events<T: 'static + InputManager>( #[resource] window_channel: &mut WindowFlow, #[resource] manager: &mut T, #[resource] mouse: &mut Mouse, @@ -273,7 +273,6 @@ pub fn _process_window_events<T: 'static + InputManager, DP: 'static + DrawPass< manager.handle_frame(&actions_buf[0..actions_buf_cursor]); } -pub fn process_window_events_system<T: 'static + InputManager, DP: 'static + DrawPass<Singular>>( -) -> impl Runnable { - _process_window_events_system::<T, DP>(Vec::with_capacity(4)) +pub fn process_window_events_system<T: 'static + InputManager>() -> impl Runnable { + _process_window_events_system::<T>(Vec::with_capacity(4)) } |