Enum basalt::input::InputHook [−][src]
pub enum InputHook {}Show variants
Press { global: bool, keys: Vec<Qwery>, mouse_buttons: Vec<MouseButton>, }, Hold { global: bool, keys: Vec<Qwery>, mouse_buttons: Vec<MouseButton>, initial_delay: Duration, interval: Duration, accel: f32, }, Release { global: bool, keys: Vec<Qwery>, mouse_buttons: Vec<MouseButton>, }, Character, MouseEnter, MouseLeave, MouseMove, MouseMotion, MouseScroll, WindowFocused, WindowLostFocus, AnyMouseOrKeyPress { global: bool, }, AnyMousePress { global: bool, }, AnyKeyPress { global: bool, }, AnyMouseOrKeyRelease { global: bool, }, AnyMouseRelease { global: bool, }, AnyKeyRelease { global: bool, },
Variants
Press is called once when all keys and mouse buttons are active.
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.
Show fields
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.
Like a normal key press. Qwery
is converted into a Character
with
modifiers in consideration.
Called when the mouse enters the window.
Called when the mouse leaves the window.
Called when the mouse moves within the window.
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.
Called when the mouse is over the window.
Called when the window gains focus.
Called when the window loses focus.
Called on any mouse button or key press.
Show fields
Fields of AnyMouseOrKeyPress
global: bool
Called on any mouse button press.
Show fields
Fields of AnyMousePress
global: bool
Called on any key press.
Show fields
Fields of AnyKeyPress
global: bool
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.
Show fields
Fields of AnyMouseOrKeyRelease
global: bool
Called on any mouse button release. Also called when the window loses focus with all the mouse buttons that were currently held before.
Show fields
Fields of AnyMouseRelease
global: bool
Called on any key release. Also called when the window loses focus with all the keys that were currently held before.
Show fields
Fields of AnyKeyRelease
global: bool
Implementations
impl InputHook
[src]
impl InputHook
[src]pub fn into_data(&self) -> InputHookData
[src]
pub fn ty(&self) -> InputHookTy
[src]
Trait Implementations
impl StructuralPartialEq for InputHook
[src]
Auto Trait Implementations
impl RefUnwindSafe for InputHook
impl Send for InputHook
impl Sync for InputHook
impl Unpin for InputHook
impl UnwindSafe for InputHook
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Content for T
[src]
impl<T> Content for T
[src]pub fn ref_from_ptr(ptr: *mut c_void, size: usize) -> Option<*mut T>
[src]
pub fn ref_from_ptr(ptr: *mut c_void, size: usize) -> Option<*mut T>
[src]Builds a pointer to this type from a raw pointer.
pub fn is_size_suitable(size: usize) -> bool
[src]
pub fn is_size_suitable(size: usize) -> bool
[src]Returns true if the size is suitable to store a type like this.
pub fn indiv_size() -> usize
[src]
pub fn indiv_size() -> usize
[src]Returns the size of an individual element.
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,