Leafwing-Studios / leafwing-input-manager

A straightforward stateful input manager for the Bevy game engine.
Apache License 2.0
616 stars 92 forks source link

Update to 0.14 release candidate #531

Closed ChristopherBiscardi closed 3 weeks ago

ChristopherBiscardi commented 3 weeks ago

A PR to match the Bevy 0.14.0-rc.2 release. Most of the change seem straightforward, although I'm not as familiar with the internals here as I'd like. The vast majority of the PR is app.world refactors to use function access.

Most notably:

Additionally, there seems to be an issue on main with the mouse_position example, and that issue is still present here in this PR.

❯ cargo run --example mouse_position
warning: `leafwing-input-manager` (lib) generated 2 warnings
   Compiling leafwing-input-manager v0.14.0 (/Users/chris/github/leafwing-studios/leafwing_input_manager)
error[E0432]: unresolved import `leafwing_input_manager::systems::run_if_enabled`
 --> examples/mouse_position.rs:3:69
  |
3 |     axislike::DualAxisData, plugin::InputManagerSystem, prelude::*, systems::run_if_enabled,
  |                                                                     ^^^^^^^^^^^^^^^^^^^^^^^ no `run_if_enabled` in `systems`

error[E0599]: no variant or associated item named `ReleaseOnDisable` found for enum `InputManagerSystem` in the current scope
  --> examples/mouse_position.rs:16:45
   |
16 |                 .before(InputManagerSystem::ReleaseOnDisable)
   |                                             ^^^^^^^^^^^^^^^^ variant or associated item not found in `InputManagerSystem`

Some errors have detailed explanations: E0432, E0599.
For more information about an error, try `rustc --explain E0432`.
error: could not compile `leafwing-input-manager` (example "mouse_position") due to 2 previous errors
alice-i-cecile commented 3 weeks ago

Excellent! I've prepared a sibling branch for a simple compatibility release over on https://github.com/Leafwing-Studios/leafwing-input-manager/tree/v0.14-rc.

alice-i-cecile commented 3 weeks ago

Adopted in #533.