Skip to content

Commit 43d5a53

Browse files
committed
Add: missing INPUT_PROP_XXX flags from input-event-codes.h
1 parent 6edce63 commit 43d5a53

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
@@ -5059,6 +5059,13 @@ pub const FF_MAX: __u16 = 0x7f;
50595059
pub const FF_CNT: usize = FF_MAX as usize + 1;
50605060

50615061
// linux/input-event-codes.h
5062+
pub const INPUT_PROP_POINTER: __u16 = 0x00;
5063+
pub const INPUT_PROP_DIRECT: __u16 = 0x01;
5064+
pub const INPUT_PROP_BUTTONPAD: __u16 = 0x02;
5065+
pub const INPUT_PROP_SEMI_MT: __u16 = 0x03;
5066+
pub const INPUT_PROP_TOPBUTTONPAD: __u16 = 0x04;
5067+
pub const INPUT_PROP_POINTING_STICK: __u16 = 0x05;
5068+
pub const INPUT_PROP_ACCELEROMETER: __u16 = 0x06;
50625069
pub const INPUT_PROP_MAX: __u16 = 0x1f;
50635070
pub const INPUT_PROP_CNT: usize = INPUT_PROP_MAX as usize + 1;
50645071
pub const EV_MAX: __u16 = 0x1f;

0 commit comments

Comments
 (0)