-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Closed
Labels
A-InputPlayer input via keyboard, mouse, gamepad, and morePlayer input via keyboard, mouse, gamepad, and moreC-BugAn unexpected or incorrect behaviorAn unexpected or incorrect behaviorD-StraightforwardSimple bug fixes and API improvements, docs, test and examplesSimple bug fixes and API improvements, docs, test and examplesS-Needs-DesignThis issue requires design work to think about how it would best be accomplishedThis issue requires design work to think about how it would best be accomplished
Description
Bevy version
main, since #17955
What you did
Attempted to migrate a crate dealing with input and using default-features = false to Bevy 0.16-dev
What went wrong
error[E0433]: failed to resolve: could not find `input` in `bevy`
--> src/lib.rs:28:5
|
28 | input::keyboard::{Key, KeyboardInput},
| ^^^^^ could not find `input` in `bevy`
And there doesn't appear to be any way of rectifying this. It seems that we need a new bevy_input feature, but it's also possible that bevy_input becoming optional was a mistake. I haven't been following the no_std effort closely, so I'm not sure.
A bad workaround is to add the std feature, which includes bevy_input. (This may be a separate bug. Seems like with bevy_input optional, bevy_internal/std should be using bevy_input?/std).
Metadata
Metadata
Assignees
Labels
A-InputPlayer input via keyboard, mouse, gamepad, and morePlayer input via keyboard, mouse, gamepad, and moreC-BugAn unexpected or incorrect behaviorAn unexpected or incorrect behaviorD-StraightforwardSimple bug fixes and API improvements, docs, test and examplesSimple bug fixes and API improvements, docs, test and examplesS-Needs-DesignThis issue requires design work to think about how it would best be accomplishedThis issue requires design work to think about how it would best be accomplished