Skip to content

Commit 759b68b

Browse files
authored
Merge pull request #4326 from yuvraj-wale/add-missing-input-prop-flags
linux: add missing INPUT_PROP_XXX flags from input-event-codes.h
2 parents 84713de + 43d5a53 commit 759b68b

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

Diff for: libc-test/semver/linux.txt

+7
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

Diff for: src/unix/linux_like/linux/mod.rs

+7
Original file line numberDiff line numberDiff line change
@@ -5151,6 +5151,13 @@ pub const FF_MAX: __u16 = 0x7f;
51515151
pub const FF_CNT: usize = FF_MAX as usize + 1;
51525152

51535153
// linux/input-event-codes.h
5154+
pub const INPUT_PROP_POINTER: __u16 = 0x00;
5155+
pub const INPUT_PROP_DIRECT: __u16 = 0x01;
5156+
pub const INPUT_PROP_BUTTONPAD: __u16 = 0x02;
5157+
pub const INPUT_PROP_SEMI_MT: __u16 = 0x03;
5158+
pub const INPUT_PROP_TOPBUTTONPAD: __u16 = 0x04;
5159+
pub const INPUT_PROP_POINTING_STICK: __u16 = 0x05;
5160+
pub const INPUT_PROP_ACCELEROMETER: __u16 = 0x06;
51545161
pub const INPUT_PROP_MAX: __u16 = 0x1f;
51555162
pub const INPUT_PROP_CNT: usize = INPUT_PROP_MAX as usize + 1;
51565163
pub const EV_MAX: __u16 = 0x1f;

0 commit comments

Comments
 (0)