input_event_codes_hashmap/syn.rs
1use std::collections::HashMap;
2
3/*
4 * Synchronization events.
5 */
6lazy_static! {
7 pub static ref SYN: HashMap<&'static str, u32> = {
8 let mut m = HashMap::new();
9 m.insert("REPORT", 0);
10 m.insert("CONFIG", 1);
11 m.insert("MT_REPORT", 2);
12 m.insert("DROPPED", 3);
13 m.insert("MAX", 0xf);
14 m.insert("CNT", 0xf + 1);
15 m.shrink_to_fit();
16 m
17 };
18}