[][src]Struct bevy::input::Input

pub struct Input<T> { /* fields omitted */ }

A "press-able" input of type T

Implementations

impl<T> Input<T> where
    T: Copy + Eq + Hash
[src]

pub fn press(&mut self, input: T)[src]

pub fn pressed(&self, input: T) -> bool[src]

pub fn release(&mut self, input: T)[src]

pub fn just_pressed(&self, input: T) -> bool[src]

pub fn just_released(&self, input: T) -> bool[src]

pub fn reset(&mut self, input: T)[src]

pub fn update(&mut self)[src]

pub fn get_pressed(&self) -> impl ExactSizeIterator[src]

pub fn get_just_pressed(&self) -> impl ExactSizeIterator[src]

pub fn get_just_released(&self) -> impl ExactSizeIterator[src]

Trait Implementations

impl<T> Debug for Input<T> where
    T: Debug
[src]

impl<T> Default for Input<T>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for Input<T> where
    T: RefUnwindSafe

impl<T> Send for Input<T> where
    T: Send

impl<T> Sync for Input<T> where
    T: Sync

impl<T> Unpin for Input<T> where
    T: Unpin

impl<T> UnwindSafe for Input<T> where
    T: UnwindSafe

Blanket Implementations

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

impl<T> Any for T where
    T: Any

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

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

impl<T> Component for T where
    T: 'static + Send + Sync

impl<T> Downcast for T where
    T: Any

impl<T> DowncastSync for T where
    T: Send + Sync + Any

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

impl<T> FromResources for T where
    T: Default
[src]

impl<T> Instrument for T[src]

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

impl<T> Resource for T where
    T: 'static + Send + Sync
[src]

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,