Skip to content

bevy_input is now optional, but there's no way to enable it #18397

Closed
@rparrett

Description

@rparrett

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

No one assigned

    Labels

    A-InputPlayer input via keyboard, mouse, gamepad, and moreC-BugAn unexpected or incorrect behaviorD-StraightforwardSimple bug fixes and API improvements, docs, test and examplesS-Needs-DesignThis issue requires design work to think about how it would best be accomplished

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions