Skip to main content

Crate bevy_pretty_nice_input

Crate bevy_pretty_nice_input 

Source
Expand description

An action- and component-based input crate for Bevy.

To get started, add the PrettyNiceInputPlugin plugin to your app, define some Actions, then add some input! and input_transition! bundles to your player or input system entity. Then you should be able to either observe action events like On<JustPressed<MyAction>> or respond to changes in components.

Check out the examples.

Modules§

bevy_event_chain
Re-exports from bevy_event_chain.
binding1d
1-dimensional bindings, such as a single key press or joystick axis.
binding2d
2-dimensional bindings, such as WASD or an entire joystick.
bundles
Bundle effect versions of observers and systems, copied here while built-in Bevy versions are experimental.
prelude
All the common types someone should have to deal with.

Structs§

PrettyNiceInputPlugin
The plugin. Add this to your app or the crate won’t work!
PrettyNiceInputSystems
SystemSet containing all input systems.