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

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
FocusedLostFocus

Methods

impl BinHookData[src]

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

Auto Trait Implementations

impl Send for BinHookData

impl Sync for BinHookData

Blanket Implementations

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

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

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

The type returned in the event of a conversion error.

impl<T> Erased for T

impl<T> Content for T[src]

impl<T> SafeBorrow for T[src]

impl<T> SetParameter for T

fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
    T: Parameter<Self>, 

Sets value as a parameter of self.