rktk_keymanager/keycode/modifier.rs
1//! Modifier keys
2
3use macro_rules_attribute::apply;
4
5use crate::macros::{impl_display, with_consts};
6
7use super::common_derive;
8
9#[apply(with_consts)]
10#[apply(common_derive)]
11#[derive(Copy, strum::EnumIter, strum::IntoStaticStr)]
12pub enum Modifier {
13 LCtrl = 0x01,
14 LShft = 0x02,
15 LAlt = 0x04,
16 LGui = 0x08,
17 RCtrl = 0x10,
18 RShft = 0x20,
19 RAlt = 0x40,
20 RGui = 0x80,
21}
22
23impl_display!(Modifier);