Skip to content

Commit

Permalink
fixes for Bevy 0.13
Browse files Browse the repository at this point in the history
  • Loading branch information
mockersf committed Mar 11, 2024
1 parent 6f792fb commit 50bb3c7
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 8 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ assets = ["bevy/bevy_asset"]
[dependencies.bevy]
version = "0.13"
default-features = false
features = ["multi-threaded"]

[dependencies]
streamdeck = { version = "0.8", default-features = false }
Expand Down
2 changes: 1 addition & 1 deletion examples/animated.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ use bevy_streamdeck::{StreamDeck, StreamDeckPlugin};

fn main() {
App::new()
.add_plugins(MinimalPlugins)
.add_plugins((
MinimalPlugins,
AssetPlugin::default(),
ImagePlugin::default(),
LogPlugin::default(),
Expand Down
3 changes: 1 addition & 2 deletions examples/colors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ use rand::Rng;

fn main() {
App::new()
.add_plugins(MinimalPlugins)
.add_plugins(LogPlugin::default())
.add_plugins((MinimalPlugins, LogPlugin::default()))
.add_plugins(StreamDeckPlugin)
.insert_resource(Time::<Fixed>::from_seconds(0.5))
.add_systems(FixedUpdate, change_color)
Expand Down
2 changes: 1 addition & 1 deletion examples/demo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ use rand::Rng;

fn main() {
App::new()
.add_plugins(MinimalPlugins)
.add_plugins((
MinimalPlugins,
AssetPlugin::default(),
ImagePlugin::default(),
LogPlugin::default(),
Expand Down
2 changes: 1 addition & 1 deletion examples/image.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ use rand::Rng;

fn main() {
App::new()
.add_plugins(MinimalPlugins)
.add_plugins((
MinimalPlugins,
AssetPlugin::default(),
ImagePlugin::default(),
LogPlugin::default(),
Expand Down
3 changes: 1 addition & 2 deletions examples/inputs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ use bevy_streamdeck::{StreamDeckInput, StreamDeckKey, StreamDeckPlugin};

fn main() {
App::new()
.add_plugins(MinimalPlugins)
.add_plugins(LogPlugin::default())
.add_plugins((MinimalPlugins, LogPlugin::default()))
.add_plugins(StreamDeckPlugin)
.add_systems(
Update,
Expand Down
2 changes: 1 addition & 1 deletion examples/whack_a_mole.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ fn main() {
.add_plugins((MinimalPlugins, LogPlugin::default()))
.add_plugins(StreamDeckPlugin)
.add_systems(Startup, clean)
.insert_resource(Time::<Fixed>::from_hz(60.0 / FACTOR))
.insert_resource(Time::<Fixed>::from_hz(1.0 / FACTOR))
.add_systems(FixedUpdate, spawn_mole)
.add_systems(PostUpdate, despawn_mole)
.add_systems(Update, whack)
Expand Down

0 comments on commit 50bb3c7

Please sign in to comment.