From 8b7dc10ccdf9577665e96dbe6ece1cb2991d4984 Mon Sep 17 00:00:00 2001 From: Mikkel Rasmussen Date: Sun, 10 Apr 2022 19:05:49 +0200 Subject: [PATCH 1/4] Updated to bevy 0.7 --- Cargo.toml | 7 +++++-- README.md | 14 +++++++++++--- src/lib.rs | 24 ++++++++++++------------ 3 files changed, 28 insertions(+), 17 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index fc7be11..4231ea3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,7 +14,10 @@ resolver = "2" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -bevy = {version = "0.6", default-features = false, features = ["bevy_render"]} +bevy = {version = "0.7.0-dev", default-features = false, features = ["bevy_render"]} [dev-dependencies] -bevy = {version = "0.6", default-features = false, features = ["x11", "wayland", "bevy_pbr", "bevy_core_pipeline"]} +bevy = {version = "0.7.0-dev", default-features = false, features = ["x11", "wayland", "bevy_pbr", "bevy_core_pipeline"]} + +[patch.crates-io] +bevy = { git = "https://github.com/bevyengine/bevy", branch = "main" } \ No newline at end of file diff --git a/README.md b/README.md index f8f108e..8e27cb8 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ ![docs.rs](https://img.shields.io/docsrs/bevy_flycam) -A basic first-person fly camera for Bevy 0.6 +A basic first-person fly camera for Bevy 0.7 ## Controls * WASD to move horizontally @@ -25,7 +25,7 @@ There are a few notable differences from [bevy_fly_camera](https://github.com/mc 1. Add to `Cargo.toml` or copy `lib.rs` to your own file ```toml [dependencies] -bevy = "0.6" +bevy = "0.7" bevy_flycam = "*" ``` @@ -33,7 +33,7 @@ or ```toml [dependencies] -bevy = "0.6" +bevy = "0.7" bevy_flycam = { git = "https://github.com/sburris0/bevy_flycam" } ``` @@ -74,5 +74,13 @@ fn main() { } ``` +# Support +[![Bevy tracking](https://img.shields.io/badge/Bevy%20tracking-released%20version-lightblue)](https://github.com/bevyengine/bevy/blob/main/docs/plugins_guidelines.md#main-branch-tracking) + +bevy_flycam's crate version matches bevy's X version as shown: +|bevy|bevy_flycam| +|---|---| +|0.X.Y|0.X| + ## Contributing PRs are very welcome. diff --git a/src/lib.rs b/src/lib.rs index 44045f5..9fe36e7 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,4 +1,4 @@ -use bevy::app::{Events, ManualEventReader}; +use bevy::ecs::event::{ManualEventReader, Events}; use bevy::input::mouse::MouseMotion; use bevy::prelude::*; @@ -56,10 +56,10 @@ fn player_move( time: Res