[−][src]Enum basalt::input::InputHook
Variants
Press
Press is called once when all keys and mouse buttons are active.
Fields of Press
Hold
Hold is called while the key and mouse buttons are called. Nothing will
be called until the initial delay period has elapsed. After that it will
be called every time interval has elapsed. accel
is not implemnted at
this time.
Fields of Hold
Release
Release is called when the all keys/buttons have been set to active and then anyone of them has been release. Release is also called when the window loses focus.
Fields of Release
Character
Like a normal key press. Qwery
is converted into a Character
with
modifiers in consideration.
MouseEnter
Called when the mouse enters the window.
MouseLeave
Called when the mouse leaves the window.
MouseMove
Called when the mouse moves within the window.
MouseMotion
Called when the mouse motion is recieved. This is not a window event, but rather a device event. Do not use this in combination with MouseMove as the data units may differ. Example use would be for game camera.
MouseScroll
Called when the mouse is over the window.
WindowFocused
Called when the window gains focus.
WindowLostFocus
Called when the window loses focus.
AnyMouseOrKeyPress
Called on any mouse button or key press.
Fields of AnyMouseOrKeyPress
global: bool
AnyMousePress
Called on any mouse button press.
Fields of AnyMousePress
global: bool
AnyKeyPress
Called on any key press.
Fields of AnyKeyPress
global: bool
AnyMouseOrKeyRelease
Called on any mouse button or key release. Also called when the window loses focus with all the keys and buttons that were currently held before.
Fields of AnyMouseOrKeyRelease
global: bool
AnyMouseRelease
Called on any mouse button release. Also called when the window loses focus with all the mouse buttons that were currently held before.
Fields of AnyMouseRelease
global: bool
AnyKeyRelease
Called on any key release. Also called when the window loses focus with all the keys that were currently held before.
Fields of AnyKeyRelease
global: bool
Methods
impl InputHook
[src]
pub fn into_data(&self) -> InputHookData
[src]
pub fn ty(&self) -> InputHookTy
[src]
Trait Implementations
impl Clone for InputHook
[src]
impl PartialEq<InputHook> for InputHook
[src]
impl Debug for InputHook
[src]
Auto Trait Implementations
impl Unpin for InputHook
impl Sync for InputHook
impl Send for InputHook
impl UnwindSafe for InputHook
impl RefUnwindSafe for InputHook
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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>,