Struct hookmap_core::common::handler::InputHandler[][src]

pub struct InputHandler {
    pub button: EventHandler<ButtonEvent>,
    pub mouse_wheel: EventHandler<i32>,
    pub mouse_cursor: EventHandler<(i32, i32)>,
}
Expand description

A keyboard and mouse Event Handler.

Fields

button: EventHandler<ButtonEvent>mouse_wheel: EventHandler<i32>mouse_cursor: EventHandler<(i32, i32)>

Implementations

Handles keyboard and mouse event and blocks a thread.

Panics

Panics if a mutex lock fails.

Examples

use hookmap_core::INPUT_HANDLER;
INPUT_HANDLER.handle_input();

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Installs hooks in the way of each platform.

Installs hooks and blocks a thread.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.