bevy_enhanced_input

Crates.iobevy_enhanced_input
lib.rsbevy_enhanced_input
version0.2.0
sourcesrc
created_at2024-10-20 12:32:09.308377
updated_at2024-11-03 14:04:57.529687
descriptionDynamic and contextual input mappings for Bevy
homepage
repositoryhttps://github.com/projectharmonia/bevy_enhanced_input
max_upload_size
id1416191
size356,955
Hennadii Chernyshchyk (Shatur)

documentation

README

Bevy Enhanced Input

crates.io docs.rs codecov

Dynamic and contextual input mappings for Bevy, inspired by Unreal Engine Enhanced Input.

Features

  • Map inputs from various sources (keyboard, gamepad, etc.) to gameplay actions like Jump, Move, or Attack.
  • Assign actions to different contexts like OnFoot or InCar, which are regular components.
  • Activate or deactivate contexts by simply adding or removing components.
  • Control how actions accumulate input from sources and consume it.
  • Layer multiple contexts on a single entity, controlled by priority.
  • Apply modifiers to inputs, such as dead zones, inversion, scaling, etc., or create custom modifiers by implementing a trait.
  • Assign conditions for how and when an action is triggered, like "hold", "tap", "chord", etc. You can also create custom conditions by implementing a trait.
  • React on actions with observers.

Getting Started

Check out the quick start guide for more details.

See also examples in the repo. simple.rs should be a good starting point.

Have any questions? Feel free to ask in the dedicated bevy_enhanced_input channel in Bevy's Discord server.

Bevy compatibility

bevy bevy_enhanced_input
0.14.0 0.1-0.2
Commit count: 262

cargo fmt