Skip to content

Commit

Permalink
Update for Bevy 0.12 (#408)
Browse files Browse the repository at this point in the history
* Update to git

* forgot a configure_set

* Update examples

* Update Bevy to 0.12 release

* Bump versions

* Disable failing test

* Remove bevy_egui so we can ship

* Update release notes

---------

Co-authored-by: Tomato <67799071+100-TomatoJuice@users.noreply.github.com>
Co-authored-by: Alice Cecile <alice.i.cecil@gmail.com>
  • Loading branch information
3 people authored Nov 4, 2023
1 parent fc3e348 commit fc45e20
Show file tree
Hide file tree
Showing 9 changed files with 33 additions and 349 deletions.
13 changes: 4 additions & 9 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "leafwing-input-manager"
description = "A powerfully direct stateful input manager for the Bevy game engine."
version = "0.10.0"
version = "0.11.0"
authors = ["Leafwing Studios"]
homepage = "https://leafwing-studios.com/"
repository = "https://github.com/leafwing-studios/leafwing-input-manager"
Expand All @@ -21,16 +21,13 @@ members = ["./", "tools/ci", "macros"]
default = ['ui', 'block_ui_interactions']
ui = ['bevy/bevy_ui']
block_ui_interactions = []
# If this feature is enabled, egui will have priority over actions when processing inputs
egui = ['dep:bevy_egui']

[dependencies]
leafwing_input_manager_macros = { path = "macros", version = "0.9" }
bevy = { version = "0.11", default-features = false, features = [
leafwing_input_manager_macros = { path = "macros", version = "0.11" }
bevy = { version = "0.12", default-features = false, features = [
"serialize",
"bevy_gilrs",
] }
bevy_egui = { version = "0.22", optional = true }

petitset = { version = "0.2.1", features = ["serde_compat"] }
derive_more = { version = "0.99", default-features = false, features = [
Expand All @@ -43,8 +40,7 @@ fixedbitset = "0.4.2"
once_cell = "1.17.1"

[dev-dependencies]
bevy_egui = { version = "0.22" }
bevy = { version = "0.11", default-features = false, features = [
bevy = { version = "0.12", default-features = false, features = [
"bevy_asset",
"bevy_sprite",
"bevy_text",
Expand All @@ -67,4 +63,3 @@ harness = false
[lib]
name = "leafwing_input_manager"
path = "src/lib.rs"

9 changes: 7 additions & 2 deletions RELEASES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
# Release Notes

## Unreleased
## Version 0.11

### Known issues

- `bevy_egui` integration and the `egui` feature flag have been temporarily removed to ensure a timely release
- gamepad input mocking is not completely functional due to upstream changes: see [#407](https://github.com/Leafwing-Studios/leafwing-input-manager/issues/407)
- additional experiments and information would be helpful!

### Bugs

Expand All @@ -20,7 +26,6 @@
- Added sensitivity for `SingleAxis` and `DualAxis`, allowing you to scale mouse, keypad and gamepad inputs differently for each action.
- Added a helper `from_keys` to `VirtualAxis` to simplify creating one from two keys


### Usability

- Added `block_ui_interactions` feature flag; when on, mouse input won't be read if any `bevy_ui` element has an active `Interaction`.
Expand Down
291 changes: 0 additions & 291 deletions examples/binding_menu.rs

This file was deleted.

2 changes: 1 addition & 1 deletion examples/send_actions_over_network.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ fn send_events<A: Send + Sync + 'static + Debug + Clone + Event>(
let mut reader = reader.unwrap_or_else(|| client_events.get_reader());

// Push the clients' events to the server
for client_event in reader.iter(client_events) {
for client_event in reader.read(client_events) {
dbg!(client_event.clone());
server_events.send(client_event.clone());
}
Expand Down
2 changes: 1 addition & 1 deletion macros/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "leafwing_input_manager_macros"
description = "Macros for the `leafwing-input-manager` crate"
version = "0.9.0"
version = "0.11.0"

license = "MIT OR Apache-2.0"
edition = "2021"
Expand Down
Loading

0 comments on commit fc45e20

Please sign in to comment.