#Can't use mouse in game with `bevy_editor_pls`
4 messages · Page 1 of 1 (latest)
I don't seem to have access to the cursor position
Do you mean that if you havebevy_editor_plsinstalled you can't access the mouse cursor position from a system?
my current prototype uses bevy_editor_pls and something like bellow works for me:
pub fn mouse_input(windows: Res<Windows>) {
let window = windows.get_primary().unwrap();
if let Some(position) = window.cursor_position() {
println!(":?}", position);
}
}
Huh, I might be using the cursor moved events. I’ll check later
Ok looks like I'm using CursorMoved and CursorLeft events. I'll see if it works with Res<Windows> instead