bevy-input-sequence

This crate provides reading user input sequences, and sending event

Examples

```rust use std::time::Duration; use bevy::prelude::; use bevy_input_sequence::prelude::;

[derive(Event, Clone, Debug)]

struct MyEvent;

fn main() { App::new() .addplugins(DefaultPlugins) .addinputsequenceevent::() .addsystems(Startup, setup) .addsystems(Update, inputsequenceevent_system) .run(); }

fn setup(mut commands: Commands) { commands.spawn(InputSequence::fromkeycodes( MyEvent, Timeout::fromduration(Duration::from_secs(1)), &[ KeyCode::W, KeyCode::D, KeyCode::S, KeyCode::A ], )); }

fn inputsequenceevent_system( mut er: EventReader ) { for e in er.iter() { println!("{e:?} Coming "); } } ```

See here for more examples.