bevy_unified_input 0.2.1

A unified input primitives
Documentation

bevy_unified_input

Ever wanted to bind multiple inputs at a time? A unified input primitives is just the thing

WIP: the api is still kinda cumbersome, but I found it useful for libraries that need some default bindings

Example


use bevy::prelude::*;
use bevy_unified_input::*;

#[derive(Resource)]
struct MyInput {
speed_up_timeline: InputBinding,
slow_down_timeline: InputBinding,
}

impl Default for MyInput {
    fn default() -> Self {
        Self {
            speed_up_timeline: [KeyCode::KeyX.into(), GamepadButton::DPadRight.into()].into(),
            slow_down_timeline: [KeyCode::KeyZ.into(), GamepadButton::DPadLeft.into()].into(),
        }
    }
}

Bevy Version Compatibility

bevy bevy_unified_input
0.18 0.1.0-0.2.*

License

Licensed under either of

at your option.