bevy_input_bindings 0.0.2

High level, flexible and shareable input binding library for the Bevy game engine
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use std::time::Duration;

pub(crate) const CONTROLLER_DURATION_BEFORE_FIRST_REPEAT: Duration = Duration::from_secs(1);
pub(crate) const CONTROLLER_DURATION_BETWEEN_REPEAT: Duration = Duration::from_millis(300);

#[derive(Debug)]
pub enum OtsUiActions {
    Up,
    Down,
    Left,
    Right,
    Validate,
    Back,
}

#[derive(Debug, Hash, PartialEq, Eq)]
pub struct OtsUiValues;