camera speed, window settings
This commit is contained in:
parent
3838b5d7c6
commit
b741202111
2 changed files with 22 additions and 1 deletions
|
@ -10,6 +10,9 @@ use winit::{
|
|||
pub async fn run() {
|
||||
let event_loop = EventLoop::new();
|
||||
let window = WindowBuilder::new().build(&event_loop).unwrap();
|
||||
window.set_cursor_grab(true).unwrap();
|
||||
window.set_cursor_visible(false);
|
||||
window.set_decorations(false);
|
||||
let mut state = State::new(&window).await;
|
||||
let mut last_render = Instant::now();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue