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 {
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>,
}, 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, },
}

Variants

Press
Show fields

Fields of Press

global: boolmouse_x: f32mouse_y: f32key_active: HashMap<Qwery, bool>mouse_active: HashMap<MouseButton, bool>
Hold
Show fields

Fields of Hold

global: boolactive: boolmouse_x: f32mouse_y: f32first_call: Instantlast_call: Instantis_first_call: boolinitial_delay: Durationinitial_delay_elapsed: boolinterval: Durationaccel: f32key_active: HashMap<Qwery, bool>mouse_active: HashMap<MouseButton, bool>
Release
Show fields

Fields of Release

global: boolpressed: boolkey_active: HashMap<Qwery, bool>mouse_active: HashMap<MouseButton, bool>
Character
Show fields

Fields of Character

character: Character
MouseEnter
Show fields

Fields of MouseEnter

mouse_x: f32mouse_y: f32
MouseLeave
Show fields

Fields of MouseLeave

mouse_x: f32mouse_y: f32
MouseMove
Show fields

Fields of MouseMove

mouse_x: f32mouse_y: f32mouse_dx: f32mouse_dy: f32
MouseMotion
Show fields

Fields of MouseMotion

x: f32y: f32
MouseScroll
Show fields

Fields of MouseScroll

mouse_x: f32mouse_y: f32scroll_amt: f32
WindowFocused
WindowLostFocus
AnyMouseOrKeyPress
Show fields

Fields of AnyMouseOrKeyPress

global: booleither: KeyOrMouseButton
AnyMousePress
Show fields

Fields of AnyMousePress

global: boolbutton: MouseButton
AnyKeyPress
Show fields

Fields of AnyKeyPress

global: boolkey: Qwery
AnyMouseOrKeyRelease
Show fields

Fields of AnyMouseOrKeyRelease

global: booleither: KeyOrMouseButton
AnyMouseRelease
Show fields

Fields of AnyMouseRelease

global: boolbutton: MouseButton
AnyKeyRelease
Show fields

Fields of AnyKeyRelease

global: boolkey: Qwery

Implementations

impl InputHookData[src]

pub fn ty(&self) -> InputHookTy[src]

pub fn cond_met(&self) -> bool[src]

Trait Implementations

impl Clone for 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]

Performs copy-assignment from source. Read more

impl Debug for InputHookData[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> Content for 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]

Returns true if the size is suitable to store a type like this.

pub fn indiv_size() -> usize[src]

Returns the size of an individual element.

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T> Pointable for T

pub const ALIGN: usize

The alignment of pointer.

type Init = T

The type for initializers.

pub unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more

pub unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more

pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more

pub unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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]

🔬 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<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

pub fn vzip(self) -> V