colpetto 0.5.0

Async libinput wrapper
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! Events that come from switch devices.

use crate::sys::{
    libinput_event_get_switch_event, libinput_event_switch, libinput_event_switch_get_base_event,
};

super::define_events!(
    /// A switch event representing a changed state in a switch.
    Switch,
    libinput_event_switch,
    libinput_event_switch_get_base_event,
    libinput_event_get_switch_event,
    /// Signals that the switch has been toggled
    Toggle,
);