Struct hookmap_core::common::handler::InputHandler [−][src]
pub struct InputHandler { pub keyboard: RwLock<HandlerFunction<KeyboardEvent>>, pub mouse_button: RwLock<HandlerFunction<MouseEvent>>, pub mouse_wheel: RwLock<HandlerFunction<i32>>, pub mouse_cursor: RwLock<HandlerFunction<(i32, i32)>>, }
Expand description
A keyboard and mouse Event Handler.
FFI requires static variables, so instead of creating a new instance, use INPUT_HANDLER
.
Fields
keyboard: RwLock<HandlerFunction<KeyboardEvent>>
mouse_wheel: RwLock<HandlerFunction<i32>>
mouse_cursor: RwLock<HandlerFunction<(i32, i32)>>