• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* Generated by ./xlat/gen.sh from ./xlat/evdev_relative_axes.in; do not edit. */
2 
3 #include "gcc_compat.h"
4 #include "static_assert.h"
5 
6 #if defined(REL_X) || (defined(HAVE_DECL_REL_X) && HAVE_DECL_REL_X)
7 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
8 static_assert((REL_X) == (0x00), "REL_X != 0x00");
9 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
10 #else
11 # define REL_X 0x00
12 #endif
13 #if defined(REL_Y) || (defined(HAVE_DECL_REL_Y) && HAVE_DECL_REL_Y)
14 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
15 static_assert((REL_Y) == (0x01), "REL_Y != 0x01");
16 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
17 #else
18 # define REL_Y 0x01
19 #endif
20 #if defined(REL_Z) || (defined(HAVE_DECL_REL_Z) && HAVE_DECL_REL_Z)
21 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
22 static_assert((REL_Z) == (0x02), "REL_Z != 0x02");
23 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
24 #else
25 # define REL_Z 0x02
26 #endif
27 #if defined(REL_RX) || (defined(HAVE_DECL_REL_RX) && HAVE_DECL_REL_RX)
28 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
29 static_assert((REL_RX) == (0x03), "REL_RX != 0x03");
30 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
31 #else
32 # define REL_RX 0x03
33 #endif
34 #if defined(REL_RY) || (defined(HAVE_DECL_REL_RY) && HAVE_DECL_REL_RY)
35 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
36 static_assert((REL_RY) == (0x04), "REL_RY != 0x04");
37 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
38 #else
39 # define REL_RY 0x04
40 #endif
41 #if defined(REL_RZ) || (defined(HAVE_DECL_REL_RZ) && HAVE_DECL_REL_RZ)
42 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
43 static_assert((REL_RZ) == (0x05), "REL_RZ != 0x05");
44 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
45 #else
46 # define REL_RZ 0x05
47 #endif
48 #if defined(REL_HWHEEL) || (defined(HAVE_DECL_REL_HWHEEL) && HAVE_DECL_REL_HWHEEL)
49 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
50 static_assert((REL_HWHEEL) == (0x06), "REL_HWHEEL != 0x06");
51 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
52 #else
53 # define REL_HWHEEL 0x06
54 #endif
55 #if defined(REL_DIAL) || (defined(HAVE_DECL_REL_DIAL) && HAVE_DECL_REL_DIAL)
56 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
57 static_assert((REL_DIAL) == (0x07), "REL_DIAL != 0x07");
58 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
59 #else
60 # define REL_DIAL 0x07
61 #endif
62 #if defined(REL_WHEEL) || (defined(HAVE_DECL_REL_WHEEL) && HAVE_DECL_REL_WHEEL)
63 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
64 static_assert((REL_WHEEL) == (0x08), "REL_WHEEL != 0x08");
65 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
66 #else
67 # define REL_WHEEL 0x08
68 #endif
69 #if defined(REL_MISC) || (defined(HAVE_DECL_REL_MISC) && HAVE_DECL_REL_MISC)
70 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
71 static_assert((REL_MISC) == (0x09), "REL_MISC != 0x09");
72 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
73 #else
74 # define REL_MISC 0x09
75 #endif
76 
77 #ifndef XLAT_MACROS_ONLY
78 
79 # ifdef IN_MPERS
80 
81 #  error static const struct xlat evdev_relative_axes in mpers mode
82 
83 # else
84 
85 static
86 const struct xlat evdev_relative_axes[] = {
87  [REL_X] = XLAT(REL_X),
88  [REL_Y] = XLAT(REL_Y),
89  [REL_Z] = XLAT(REL_Z),
90  [REL_RX] = XLAT(REL_RX),
91  [REL_RY] = XLAT(REL_RY),
92  [REL_RZ] = XLAT(REL_RZ),
93  [REL_HWHEEL] = XLAT(REL_HWHEEL),
94  [REL_DIAL] = XLAT(REL_DIAL),
95  [REL_WHEEL] = XLAT(REL_WHEEL),
96  [REL_MISC] = XLAT(REL_MISC),
97  XLAT_END
98 };
99 
100 # endif /* !IN_MPERS */
101 
102 #endif /* !XLAT_MACROS_ONLY */
103