File: ev.rs

package info (click to toggle)
rust-input-event-codes 6.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 340 kB
  • sloc: makefile: 4
file content (76 lines) | stat: -rw-r--r-- 1,032 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
#![allow(non_snake_case)]

use input_event_codes::{
	EV_ABS, EV_CNT, EV_FF, EV_FF_STATUS, EV_KEY, EV_LED, EV_MAX, EV_MSC, EV_PWR, EV_REL, EV_REP,
	EV_SND, EV_SW, EV_SYN,
};

#[test]
fn test_EV_SYN() {
	assert_eq!(EV_SYN!(), 0x00);
}

#[test]
fn test_EV_KEY() {
	assert_eq!(EV_KEY!(), 0x01);
}

#[test]
fn test_EV_REL() {
	assert_eq!(EV_REL!(), 0x02);
}

#[test]
fn test_EV_ABS() {
	assert_eq!(EV_ABS!(), 0x03);
}

#[test]
fn test_EV_MSC() {
	assert_eq!(EV_MSC!(), 0x04);
}

#[test]
fn test_EV_SW() {
	assert_eq!(EV_SW!(), 0x05);
}

#[test]
fn test_EV_LED() {
	assert_eq!(EV_LED!(), 0x11);
}

#[test]
fn test_EV_SND() {
	assert_eq!(EV_SND!(), 0x12);
}

#[test]
fn test_EV_REP() {
	assert_eq!(EV_REP!(), 0x14);
}

#[test]
fn test_EV_FF() {
	assert_eq!(EV_FF!(), 0x15);
}

#[test]
fn test_EV_PWR() {
	assert_eq!(EV_PWR!(), 0x16);
}

#[test]
fn test_EV_FF_STATUS() {
	assert_eq!(EV_FF_STATUS!(), 0x17);
}

#[test]
fn test_EV_MAX() {
	assert_eq!(EV_MAX!(), 0x1f);
}

#[test]
fn test_EV_CNT() {
	assert_eq!(EV_CNT!(), (EV_MAX!() + 1));
}