Skip to content

Commit 1ce3416

Browse files
committed
Upgrade to bevy 0.12
1 parent e6a01ba commit 1ce3416

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ categories = ["game-engines", "game-development"]
1313

1414
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
1515
[dependencies]
16-
bevy = { version = "0.11", default-features = false, features = ["bevy_render", "bevy_core_pipeline", "bevy_asset"] }
16+
bevy = { version = "0.12", default-features = false, features = ["bevy_render", "bevy_core_pipeline", "bevy_asset"] }
1717

1818
[dev-dependencies]
19-
bevy = { version = "0.11", default-features = false, features = ["x11", "wayland", "bevy_pbr", "bevy_core_pipeline", "bevy_asset", "ktx2", "zstd", "tonemapping_luts"] }
19+
bevy = { version = "0.12", default-features = false, features = ["x11", "wayland", "bevy_pbr", "bevy_core_pipeline", "bevy_asset", "ktx2", "zstd", "tonemapping_luts"] }

src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ fn player_look(
151151
) {
152152
if let Ok(window) = primary_window.get_single() {
153153
for mut transform in query.iter_mut() {
154-
for ev in state.reader_motion.iter(&motion) {
154+
for ev in state.reader_motion.read(&motion) {
155155
let (mut yaw, mut pitch, _) = transform.rotation.to_euler(EulerRot::YXZ);
156156
match window.cursor.grab_mode {
157157
CursorGrabMode::None => (),

0 commit comments

Comments
 (0)