Struct xdl::Keyboard[][src]

pub struct Keyboard { /* fields omitted */ }

All of the keyboard states

Implementations

impl Keyboard[src]

pub fn on_end_frame(&mut self)[src]

impl Keyboard[src]

pub fn clear(&mut self)[src]

impl Keyboard[src]

Single key

pub fn is_key_down(&self, key: Key) -> bool[src]

pub fn is_key_up(&self, key: Key) -> bool[src]

pub fn is_key_pressed(&self, key: Key) -> bool[src]

pub fn is_key_released(&self, key: Key) -> bool[src]

impl Keyboard[src]

Multiple keys

pub fn is_any_key_down<'a>(
    &self,
    keys: impl IntoIterator<Item = &'a Key>
) -> bool
[src]

pub fn is_any_key_up<'a>(&self, keys: impl IntoIterator<Item = &'a Key>) -> bool[src]

pub fn is_any_key_pressed<'a>(
    &self,
    keys: impl IntoIterator<Item = &'a Key>
) -> bool
[src]

pub fn is_any_key_released<'a>(
    &self,
    keys: impl IntoIterator<Item = &'a Key>
) -> bool
[src]

impl Keyboard[src]

pub fn event(&mut self, _ev: &())[src]

Trait Implementations

impl Clone for Keyboard[src]

impl Debug for Keyboard[src]

impl Default for Keyboard[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.