libinput: move bindings into workspace crate
This commit is contained in:
parent
4562a34890
commit
f5bcfaf73c
12 changed files with 442 additions and 316 deletions
|
|
@ -232,25 +232,6 @@ macro_rules! linear_ids {
|
|||
};
|
||||
}
|
||||
|
||||
macro_rules! cenum {
|
||||
($name:ident, $uc:ident; $($name2:ident = $val:expr,)*) => {
|
||||
#[derive(Copy, Clone, Debug, Eq, PartialEq)]
|
||||
pub struct $name(pub i32);
|
||||
|
||||
impl $name {
|
||||
pub fn raw(self) -> i32 {
|
||||
self.0
|
||||
}
|
||||
}
|
||||
|
||||
pub const $uc: &[i32] = &[$($val,)*];
|
||||
|
||||
$(
|
||||
pub const $name2: $name = $name($val);
|
||||
)*
|
||||
}
|
||||
}
|
||||
|
||||
#[expect(unused_macros)]
|
||||
macro_rules! bitor {
|
||||
($name:ident) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue