You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
103 lines
3.0 KiB
103 lines
3.0 KiB
/* Generated by ./xlat/gen.sh from ./xlat/evdev_relative_axes.in; do not edit. */
|
|
|
|
#include "gcc_compat.h"
|
|
#include "static_assert.h"
|
|
|
|
#if defined(REL_X) || (defined(HAVE_DECL_REL_X) && HAVE_DECL_REL_X)
|
|
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
|
|
static_assert((REL_X) == (0x00), "REL_X != 0x00");
|
|
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
|
|
#else
|
|
# define REL_X 0x00
|
|
#endif
|
|
#if defined(REL_Y) || (defined(HAVE_DECL_REL_Y) && HAVE_DECL_REL_Y)
|
|
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
|
|
static_assert((REL_Y) == (0x01), "REL_Y != 0x01");
|
|
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
|
|
#else
|
|
# define REL_Y 0x01
|
|
#endif
|
|
#if defined(REL_Z) || (defined(HAVE_DECL_REL_Z) && HAVE_DECL_REL_Z)
|
|
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
|
|
static_assert((REL_Z) == (0x02), "REL_Z != 0x02");
|
|
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
|
|
#else
|
|
# define REL_Z 0x02
|
|
#endif
|
|
#if defined(REL_RX) || (defined(HAVE_DECL_REL_RX) && HAVE_DECL_REL_RX)
|
|
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
|
|
static_assert((REL_RX) == (0x03), "REL_RX != 0x03");
|
|
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
|
|
#else
|
|
# define REL_RX 0x03
|
|
#endif
|
|
#if defined(REL_RY) || (defined(HAVE_DECL_REL_RY) && HAVE_DECL_REL_RY)
|
|
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
|
|
static_assert((REL_RY) == (0x04), "REL_RY != 0x04");
|
|
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
|
|
#else
|
|
# define REL_RY 0x04
|
|
#endif
|
|
#if defined(REL_RZ) || (defined(HAVE_DECL_REL_RZ) && HAVE_DECL_REL_RZ)
|
|
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
|
|
static_assert((REL_RZ) == (0x05), "REL_RZ != 0x05");
|
|
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
|
|
#else
|
|
# define REL_RZ 0x05
|
|
#endif
|
|
#if defined(REL_HWHEEL) || (defined(HAVE_DECL_REL_HWHEEL) && HAVE_DECL_REL_HWHEEL)
|
|
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
|
|
static_assert((REL_HWHEEL) == (0x06), "REL_HWHEEL != 0x06");
|
|
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
|
|
#else
|
|
# define REL_HWHEEL 0x06
|
|
#endif
|
|
#if defined(REL_DIAL) || (defined(HAVE_DECL_REL_DIAL) && HAVE_DECL_REL_DIAL)
|
|
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
|
|
static_assert((REL_DIAL) == (0x07), "REL_DIAL != 0x07");
|
|
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
|
|
#else
|
|
# define REL_DIAL 0x07
|
|
#endif
|
|
#if defined(REL_WHEEL) || (defined(HAVE_DECL_REL_WHEEL) && HAVE_DECL_REL_WHEEL)
|
|
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
|
|
static_assert((REL_WHEEL) == (0x08), "REL_WHEEL != 0x08");
|
|
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
|
|
#else
|
|
# define REL_WHEEL 0x08
|
|
#endif
|
|
#if defined(REL_MISC) || (defined(HAVE_DECL_REL_MISC) && HAVE_DECL_REL_MISC)
|
|
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
|
|
static_assert((REL_MISC) == (0x09), "REL_MISC != 0x09");
|
|
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
|
|
#else
|
|
# define REL_MISC 0x09
|
|
#endif
|
|
|
|
#ifndef XLAT_MACROS_ONLY
|
|
|
|
# ifdef IN_MPERS
|
|
|
|
# error static const struct xlat evdev_relative_axes in mpers mode
|
|
|
|
# else
|
|
|
|
static
|
|
const struct xlat evdev_relative_axes[] = {
|
|
[REL_X] = XLAT(REL_X),
|
|
[REL_Y] = XLAT(REL_Y),
|
|
[REL_Z] = XLAT(REL_Z),
|
|
[REL_RX] = XLAT(REL_RX),
|
|
[REL_RY] = XLAT(REL_RY),
|
|
[REL_RZ] = XLAT(REL_RZ),
|
|
[REL_HWHEEL] = XLAT(REL_HWHEEL),
|
|
[REL_DIAL] = XLAT(REL_DIAL),
|
|
[REL_WHEEL] = XLAT(REL_WHEEL),
|
|
[REL_MISC] = XLAT(REL_MISC),
|
|
XLAT_END
|
|
};
|
|
|
|
# endif /* !IN_MPERS */
|
|
|
|
#endif /* !XLAT_MACROS_ONLY */
|