Skip to content

Commit 2a9260f

Browse files
yuvraj-waletgross35
authored andcommitted
Add: missing INPUT_PROP_XXX flags from input-event-codes.h
(backport <rust-lang#4326>) (cherry picked from commit 43d5a53)
1 parent aa9eab3 commit 2a9260f

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

libc-test/semver/linux.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1060,8 +1060,15 @@ IF_OPER_TESTING
10601060
IF_OPER_UNKNOWN
10611061
IF_OPER_UP
10621062
IMAXBEL
1063+
INPUT_PROP_ACCELEROMETER
1064+
INPUT_PROP_BUTTONPAD
10631065
INPUT_PROP_CNT
1066+
INPUT_PROP_DIRECT
10641067
INPUT_PROP_MAX
1068+
INPUT_PROP_POINTER
1069+
INPUT_PROP_POINTING_STICK
1070+
INPUT_PROP_SEMI_MT
1071+
INPUT_PROP_TOPBUTTONPAD
10651072
IN_ACCESS
10661073
IN_ALL_EVENTS
10671074
IN_ATTRIB

src/unix/linux_like/linux/mod.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5191,6 +5191,13 @@ pub const FF_MAX: __u16 = 0x7f;
51915191
pub const FF_CNT: usize = FF_MAX as usize + 1;
51925192

51935193
// linux/input-event-codes.h
5194+
pub const INPUT_PROP_POINTER: __u16 = 0x00;
5195+
pub const INPUT_PROP_DIRECT: __u16 = 0x01;
5196+
pub const INPUT_PROP_BUTTONPAD: __u16 = 0x02;
5197+
pub const INPUT_PROP_SEMI_MT: __u16 = 0x03;
5198+
pub const INPUT_PROP_TOPBUTTONPAD: __u16 = 0x04;
5199+
pub const INPUT_PROP_POINTING_STICK: __u16 = 0x05;
5200+
pub const INPUT_PROP_ACCELEROMETER: __u16 = 0x06;
51945201
pub const INPUT_PROP_MAX: __u16 = 0x1f;
51955202
pub const INPUT_PROP_CNT: usize = INPUT_PROP_MAX as usize + 1;
51965203
pub const EV_MAX: __u16 = 0x1f;

0 commit comments

Comments
 (0)