Enum basalt::interface::hook::BinHookData[][src]

pub enum BinHookData {
    Press {
        mouse_x: f32,
        mouse_y: f32,
        key_active: HashMap<Qwery, bool>,
        mouse_active: HashMap<MouseButton, bool>,
    },
    Hold {
        mouse_x: f32,
        mouse_y: f32,
        first_call: Instant,
        last_call: Instant,
        is_first_call: bool,
        initial_delay: Duration,
        initial_delay_wait: bool,
        initial_delay_elapsed: bool,
        interval: Duration,
        accel: f32,
        key_active: HashMap<Qwery, bool>,
        mouse_active: HashMap<MouseButton, bool>,
    },
    Release {
        pressed: bool,
        key_active: HashMap<Qwery, bool>,
        mouse_active: HashMap<MouseButton, bool>,
    },
    Character {
        char_ty: 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,
    },
    MouseScroll {
        scroll_amt: f32,
    },
    Focused,
    LostFocus,
}

Variants

Press

Fields of Press

mouse_x: f32mouse_y: f32key_active: HashMap<Qwery, bool>mouse_active: HashMap<MouseButton, bool>
Hold

Fields of Hold

mouse_x: f32mouse_y: f32first_call: Instantlast_call: Instantis_first_call: boolinitial_delay: Durationinitial_delay_wait: boolinitial_delay_elapsed: boolinterval: Durationaccel: f32key_active: HashMap<Qwery, bool>mouse_active: HashMap<MouseButton, bool>
Release

Fields of Release

pressed: boolkey_active: HashMap<Qwery, bool>mouse_active: HashMap<MouseButton, bool>
Character

Fields of Character

char_ty: Character
MouseEnter

Fields of MouseEnter

mouse_x: f32mouse_y: f32
MouseLeave

Fields of MouseLeave

mouse_x: f32mouse_y: f32
MouseMove

Fields of MouseMove

mouse_x: f32mouse_y: f32mouse_dx: f32mouse_dy: f32
MouseScroll

Fields of MouseScroll

scroll_amt: f32
Focused
LostFocus

Implementations

impl BinHookData[src]

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

Trait Implementations

impl Clone for BinHookData[src]

impl Debug for BinHookData[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<T> Content for T[src]

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

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

impl<T> Pointable for T

type Init = T

The type for initializers.

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

type Owned = T

The resulting type after obtaining ownership.

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.

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.