Struct xdl::vi::AxisButton[][src]

pub struct AxisButton {
    pub pos: Button,
    pub neg: Button,
}

Neg | Pos | Neutral

WARNING: It doesn’t store key repeat configuration on serde.

Fields

pos: Button

Positive input

neg: Button

Negative input

Implementations

impl AxisButton[src]

Lifecycle

pub fn update(&mut self, input: &Input, dt: Duration)[src]

impl AxisButton[src]

pub fn sign_down(&self) -> Sign[src]

Selects down sign pressed lately

pub fn sign_pressed(&self) -> Sign[src]

Selects pressed sign pressed lately

pub fn accum_down(&self) -> Duration[src]

How long it’s been down

Trait Implementations

impl Clone for AxisButton[src]

impl Debug for AxisButton[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.