Update for bevy
0.13 and bevy_egui
0.25
#470
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Simplified PR #463 to update for
bevy
0.13 andbevy_egui
0.25.Objective
Updates the dependencies to
bevy
0.13 andbevy_egui
0.25.Solution
Updates for
bevy
0.13 andbevy_egui
0.25.TODO
Relevant PRs
Input
→ButtonInput
Migration Guide
KeyCode
-based logical keybindings andScanCode
-based physical keybindings are no longer supported; please migrate to:KeyCode
s are now representing physical keybindings.InputKind::Keyboard
has been removed.InputKind::KeyLocation
has been removed; please useInputKind::PhysicalKey
instead.ScanCode
s andQwertyScanCode
s have been removed; please useKeyCode
instead:KeyCode::Key<Letter>
, e.g.,ScanCode::K
is nowKeyCode::KeyK
.KeyCode::Digit<Number>
, e.g.,ScanCode::Key1
is nowKeyCode::Digit1
.KeyCode::Arrow<Direction>
, e.g.,ScanCode::Up
is nowKeyCode::ArrowUp
.Changelog
bevy::input::Input
, removed in Bevy 0.13, withbevy::input::ButtonInput
.bevy::input::KeyCode
s, removed in Bevy 0.13, with:KeyCode::<Letter>
withKeyCode::Key<Letter>
, e.g.,KeyCode::K
is nowKeyCode::KeyK
.KeyCode::Key<Num>
withKeyCode::Digit<Number>
, e.g.,KeyCode::Key8
is nowKeyCode::Digit8
.KeyCode::<Direction>
withKeyCode::Arrow<Direction>
, e.g.,KeyCode::Up
is nowKeyCode::ArrowUp
.KeyCode::Return
withKeyCode::Enter
.ScanCode
.QwertyScanCode
.InputKind::Keyboard
.InputKind::KeyLocation
.InputKind::PhysicalKey(bevy::input::KeyCode)
for physical key bindings.examples/physical_key_bindings
has been removed.examples/twin_stick_controller.rs
Ray3d::intersect_plane()
now take aPlane2d
rather than aVec3
as the normal of the plane.add_state
has been renamed toinit_state
.