[−][src]Struct basalt::input::Input
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]
&self,
key: Qwery,
init: Duration,
int: Duration,
func: InputHookFn
) -> InputHookID
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]
&self,
combo: Vec<Qwery>,
func: InputHookFn
) -> InputHookID
pub fn on_key_combo_hold(
&self,
combo: Vec<Qwery>,
init: Duration,
int: Duration,
func: InputHookFn
) -> InputHookID
[src]
&self,
combo: Vec<Qwery>,
init: Duration,
int: Duration,
func: InputHookFn
) -> InputHookID
pub fn on_key_combo_release(
&self,
combo: Vec<Qwery>,
func: InputHookFn
) -> InputHookID
[src]
&self,
combo: Vec<Qwery>,
func: InputHookFn
) -> InputHookID
pub fn on_mouse_press(
&self,
button: MouseButton,
func: InputHookFn
) -> InputHookID
[src]
&self,
button: MouseButton,
func: InputHookFn
) -> InputHookID
pub fn on_mouse_hold(
&self,
button: MouseButton,
init: Duration,
int: Duration,
func: InputHookFn
) -> InputHookID
[src]
&self,
button: MouseButton,
init: Duration,
int: Duration,
func: InputHookFn
) -> InputHookID
pub fn on_mouse_release(
&self,
button: MouseButton,
func: InputHookFn
) -> InputHookID
[src]
&self,
button: MouseButton,
func: InputHookFn
) -> InputHookID
Auto Trait Implementations
impl Unpin for Input
impl Sync for Input
impl Send for Input
impl !UnwindSafe for Input
impl !RefUnwindSafe for Input
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Content for T
[src]
fn ref_from_ptr(ptr: *mut c_void, size: usize) -> Option<*mut T>
[src]
fn is_size_suitable(size: usize) -> bool
[src]
fn indiv_size() -> usize
[src]
impl<T> SafeBorrow<T> for T
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
fn vzip(self) -> V
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,