bevy_input_prompts

Crates.iobevy_input_prompts
lib.rsbevy_input_prompts
version0.2.2
created_at2025-04-05 01:21:22.876316+00
updated_at2025-05-13 07:12:12.948698+00
descriptionMappings from bevy input types to popular input prompt asset paths
homepagehttps://github.com/jonathandw743/bevy_input_prompts
repositoryhttps://github.com/jonathandw743/bevy_input_prompts
max_upload_size
id1621235
size292,747
Jonathan Wilson (jonathandw743)

documentation

README

bevy_input_prompts

Mappings from bevy input types to popular input prompt asset paths along with all extra options for prompts in included packs.

Bevy Version Plugin Version
0.16 0.2
(GamepadButton::South, GamepadBrand::XboxSeries).file_path_extra(Pack::Kenney, &[_color, _outline])

features

There is one feature flag for each pack. For example, use cargo add bevy_input_prompts --features kenney_input_prompts.

adding assets to your project

Make sure to call the copy_assets function in your build.rs for example:

// build.rs

fn main() {
    bevy_input_prompts::copy_assets();
}

And (for example) use cargo add bevy_input_prompts --build --features kenney_input_prompts.

This copies input prompt assets into your assets directory if they don't exist (don't worry, nothing will get overwritten).

contributing

Plug in your input device and run some examples.

If there are any issues, for example a lot of ERROR bevy_asset::server: Path not found being logged, open an issue. (Unfortunately, I don't have every input device.)

If you want to add your own prompt pack or want to fix a mapping issue, open a pull request!

These are some specific things that I can't do myself:

  • Testing different gamepad brand detection
  • Testing mappings for different controllers
  • Testing different keyboard locales (for Key and KeyboardInput not KeyCode).
Commit count: 170

cargo fmt