diff --git a/Cargo.toml b/Cargo.toml index bf56b96..e149e26 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,7 +13,7 @@ categories = ["game-engines", "game-development"] # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -bevy = { version = "0.11", default-features = false, features = ["bevy_render", "bevy_core_pipeline", "bevy_asset"] } +bevy = { version = "0.12", default-features = false, features = ["bevy_render", "bevy_core_pipeline", "bevy_asset"] } [dev-dependencies] -bevy = { version = "0.11", default-features = false, features = ["x11", "wayland", "bevy_pbr", "bevy_core_pipeline", "bevy_asset", "ktx2", "zstd", "tonemapping_luts"] } +bevy = { version = "0.12", default-features = false, features = ["x11", "wayland", "bevy_pbr", "bevy_core_pipeline", "bevy_asset", "ktx2", "zstd", "tonemapping_luts"] } diff --git a/src/lib.rs b/src/lib.rs index e7d47ff..4d4d1b3 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -151,7 +151,7 @@ fn player_look( ) { if let Ok(window) = primary_window.get_single() { for mut transform in query.iter_mut() { - for ev in state.reader_motion.iter(&motion) { + for ev in state.reader_motion.read(&motion) { let (mut yaw, mut pitch, _) = transform.rotation.to_euler(EulerRot::YXZ); match window.cursor.grab_mode { CursorGrabMode::None => (),