Huge input update, FPS Camera controls system
Long day. I now store winit:🪟:Window in a mutex.
This commit is contained in:
parent
1e9b997aeb
commit
46c8c32819
15 changed files with 307 additions and 39 deletions
|
|
@ -1,3 +1,4 @@
|
|||
use std::sync::{Arc, Mutex};
|
||||
use winit::event::Event;
|
||||
use raidillon_assets::ModelManagerRef;
|
||||
|
||||
|
|
@ -8,6 +9,7 @@ pub struct PlatformContext {
|
|||
pub frame_width: f32,
|
||||
pub frame_height: f32,
|
||||
pub time_ctx: TimeContext,
|
||||
pub window: Arc<Mutex<winit::window::Window>>,
|
||||
}
|
||||
|
||||
#[derive(Clone)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue