hookmap 0.5.1

Registers hotkeys and simulates keyboard and mouse input.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use hookmap_core::button::Button;

use crate::hook::ButtonState;

#[derive(Debug, Default)]
pub(crate) struct RealButtonState;

impl ButtonState for RealButtonState {
    fn is_pressed(&self, button: Button) -> bool {
        button.is_pressed()
    }

    fn is_released(&self, button: Button) -> bool {
        button.is_released()
    }
}