/* See LICENSE file for copyright and license details. */ #include "libgamepad.h" #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #define ELEMSOF(A) (sizeof(A) / sizeof(*(A))) struct libgamepad_attachment_monitor { struct udev *udev; struct udev_monitor *monitor; }; struct libgamepad_device_internals { int close_fd; int require_sync; struct libevdev *dev; }; extern const char *libgamepad_button_names__[ #include "button.count" ]; extern const char *libgamepad_absolute_axis_names__[ #include "absolute-axis.count" ]; extern const char *libgamepad_relative_axis_names__[ #include "relative-axis.count" ];