Enum basalt::input::InputHookData [−][src]
pub enum InputHookData {}Show variants
Press { global: bool, mouse_x: f32, mouse_y: f32, key_active: HashMap<Qwery, bool>, mouse_active: HashMap<MouseButton, bool>, }, Hold {}, Release { global: bool, pressed: bool, key_active: HashMap<Qwery, bool>, mouse_active: HashMap<MouseButton, bool>, }, Character { character: Character, }, MouseEnter { mouse_x: f32, mouse_y: f32, }, MouseLeave { mouse_x: f32, mouse_y: f32, }, MouseMove { mouse_x: f32, mouse_y: f32, mouse_dx: f32, mouse_dy: f32, }, MouseMotion { x: f32, y: f32, }, MouseScroll { mouse_x: f32, mouse_y: f32, scroll_amt: f32, }, WindowFocused, WindowLostFocus, AnyMouseOrKeyPress { global: bool, either: KeyOrMouseButton, }, AnyMousePress { global: bool, button: MouseButton, }, AnyKeyPress { global: bool, key: Qwery, }, AnyMouseOrKeyRelease { global: bool, either: KeyOrMouseButton, }, AnyMouseRelease { global: bool, button: MouseButton, }, AnyKeyRelease { global: bool, key: Qwery, },Show fields
global: bool, active: bool, mouse_x: f32, mouse_y: f32, first_call: Instant, last_call: Instant, is_first_call: bool, initial_delay: Duration, initial_delay_elapsed: bool, interval: Duration, accel: f32, key_active: HashMap<Qwery, bool>, mouse_active: HashMap<MouseButton, bool>,
Variants
Show fields
Show fields
Show fields
Show fields
Fields of Character
character: Character
Show fields
Fields of AnyMouseOrKeyPress
global: bool
either: KeyOrMouseButton
Show fields
Fields of AnyMousePress
global: bool
Show fields
Fields of AnyMouseOrKeyRelease
global: bool
either: KeyOrMouseButton
Show fields
Fields of AnyMouseRelease
global: bool
Implementations
impl InputHookData
[src]
impl InputHookData
[src]Trait Implementations
impl Clone for InputHookData
[src]
impl Clone for InputHookData
[src]fn clone(&self) -> InputHookData
[src]
fn clone(&self) -> InputHookData
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl RefUnwindSafe for InputHookData
impl Send for InputHookData
impl Sync for InputHookData
impl Unpin for InputHookData
impl UnwindSafe for InputHookData
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>,