mirror of
https://github.com/griffi-gh/kubi.git
synced 2024-12-26 21:58:20 -06:00
fix the rest of stuff
now i need to fix mouse buttons and add init code back
This commit is contained in:
parent
8287a48f83
commit
11ec9d3ea9
|
@ -14,13 +14,12 @@ pub fn update_cursor_lock_state(
|
||||||
}
|
}
|
||||||
if lock.is_inserted_or_modified() {
|
if lock.is_inserted_or_modified() {
|
||||||
//TODO MIGRATION
|
//TODO MIGRATION
|
||||||
// let gl_window = display.display.gl_window();
|
let window = &display.window;
|
||||||
// let window = gl_window.window();
|
window.set_cursor_grab(match lock.0 {
|
||||||
// window.set_cursor_grab(match lock.0 {
|
true => CursorGrabMode::Confined,
|
||||||
// true => CursorGrabMode::Confined,
|
false => CursorGrabMode::None,
|
||||||
// false => CursorGrabMode::None,
|
}).expect("Failed to change cursor grab state");
|
||||||
// }).expect("Failed to change cursor grab state");
|
window.set_cursor_visible(!lock.0);
|
||||||
// window.set_cursor_visible(!lock.0);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -67,13 +67,12 @@ pub fn process_glutin_events(world: &mut World, event: &Event<()>) {
|
||||||
));
|
));
|
||||||
},
|
},
|
||||||
|
|
||||||
//TODO MIGRATION
|
Event::LoopExiting => {
|
||||||
// Event::LoopDestroyed => {
|
world.add_entity((
|
||||||
// world.add_entity((
|
EventComponent,
|
||||||
// EventComponent,
|
OnBeforeExitEvent
|
||||||
// OnBeforeExitEvent
|
));
|
||||||
// ));
|
},
|
||||||
// },
|
|
||||||
|
|
||||||
_ => (),
|
_ => (),
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue