[−][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
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom 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> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto 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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Erased for T
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 for T
[src]
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
Sets value
as a parameter of self
.