[][src]Enum basalt::input::InputHookData

pub enum InputHookData {
    Press {
        global: bool,
        mouse_x: f32,
        mouse_y: f32,
        key_active: HashMap<Qwery, bool>,
        mouse_active: HashMap<MouseButton, bool>,
    },
    Hold {
        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

Fields of Press

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

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

Fields of Release

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

Fields of Character

character: 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
MouseMotion

Fields of MouseMotion

x: f32y: f32
MouseScroll

Fields of MouseScroll

mouse_x: f32mouse_y: f32scroll_amt: f32
WindowFocused
WindowLostFocus
AnyMouseOrKeyPress

Fields of AnyMouseOrKeyPress

global: booleither: KeyOrMouseButton
AnyMousePress

Fields of AnyMousePress

global: boolbutton: MouseButton
AnyKeyPress

Fields of AnyKeyPress

global: boolkey: Qwery
AnyMouseOrKeyRelease

Fields of AnyMouseOrKeyRelease

global: booleither: KeyOrMouseButton
AnyMouseRelease

Fields of AnyMouseRelease

global: boolbutton: MouseButton
AnyKeyRelease

Fields of AnyKeyRelease

global: boolkey: Qwery

Methods

impl InputHookData[src]

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

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

Trait Implementations

impl Clone for InputHookData[src]

impl Debug for InputHookData[src]

Auto Trait Implementations

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

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

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.

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

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

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

impl<T> Content for T[src]

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

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

impl<T> SetParameter for T