1 /* SPDX-License-Identifier: LGPL-2.1-or-later */
2 #pragma once
3 
4 #include <linux/input.h>
5 #include <linux/types.h>
6 
7 /* linux@c7dc65737c9a607d3e6f8478659876074ad129b8 (3.12) */
8 #ifndef EVIOCREVOKE
9 #define EVIOCREVOKE _IOW('E', 0x91, int)
10 #endif
11 
12 /* linux@06a16293f71927f756dcf37558a79c0b05a91641 (4.4) */
13 #ifndef EVIOCSMASK
14 struct input_mask {
15         __u32 type;
16         __u32 codes_size;
17         __u64 codes_ptr;
18 };
19 
20 #define EVIOCGMASK _IOR('E', 0x92, struct input_mask)
21 #define EVIOCSMASK _IOW('E', 0x93, struct input_mask)
22 #endif
23 
24 /* linux@7611392fe8ff95ecae528b01a815ae3d72ca6b95 (3.17) */
25 #ifndef INPUT_PROP_POINTING_STICK
26 #define INPUT_PROP_POINTING_STICK 0x05
27 #endif
28 
29 /* linux@500d4160abe9a2e88b12e319c13ae3ebd1e18108 (4.0) */
30 #ifndef INPUT_PROP_ACCELEROMETER
31 #define INPUT_PROP_ACCELEROMETER  0x06
32 #endif
33 
34 /* linux@d09bbfd2a8408a995419dff0d2ba906013cf4cc9 (3.11) */
35 #ifndef BTN_DPAD_UP
36 #define BTN_DPAD_UP    0x220
37 #define BTN_DPAD_DOWN  0x221
38 #define BTN_DPAD_LEFT  0x222
39 #define BTN_DPAD_RIGHT 0x223
40 #endif
41 
42 /* linux@358f24704f2f016af7d504b357cdf32606091d07 (3.13) */
43 #ifndef KEY_ALS_TOGGLE
44 #define KEY_ALS_TOGGLE 0x230
45 #endif
46