[][src]Struct basalt::input::Input

pub struct Input { /* fields omitted */ }

Methods

impl Input[src]

pub fn send_event(&self, event: Event)[src]

pub fn add_hook(&self, hook: InputHook, func: InputHookFn) -> InputHookID[src]

pub fn remove_hook(&self, id: InputHookID)[src]

pub fn on_key_press(&self, key: Qwery, func: InputHookFn) -> InputHookID[src]

pub fn on_key_hold(
    &self,
    key: Qwery,
    init: Duration,
    int: Duration,
    func: InputHookFn
) -> InputHookID
[src]

pub fn on_key_release(&self, key: Qwery, func: InputHookFn) -> InputHookID[src]

pub fn on_key_combo_press(
    &self,
    combo: Vec<Qwery>,
    func: InputHookFn
) -> InputHookID
[src]

pub fn on_key_combo_hold(
    &self,
    combo: Vec<Qwery>,
    init: Duration,
    int: Duration,
    func: InputHookFn
) -> InputHookID
[src]

pub fn on_key_combo_release(
    &self,
    combo: Vec<Qwery>,
    func: InputHookFn
) -> InputHookID
[src]

pub fn on_mouse_press(
    &self,
    button: MouseButton,
    func: InputHookFn
) -> InputHookID
[src]

pub fn on_mouse_hold(
    &self,
    button: MouseButton,
    init: Duration,
    int: Duration,
    func: InputHookFn
) -> InputHookID
[src]

pub fn on_mouse_release(
    &self,
    button: MouseButton,
    func: InputHookFn
) -> InputHookID
[src]

Auto Trait Implementations

impl Send for Input

impl Sync for Input

Blanket Implementations

impl<T> From for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

impl<T, U> TryInto 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<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T

impl<T> Content for T[src]

impl<T> SafeBorrow for T[src]

impl<T> SetParameter for T

fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
    T: Parameter<Self>, 

Sets value as a parameter of self.