aboutsummaryrefslogtreecommitdiffstats
path: root/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'common.h')
-rw-r--r--common.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/common.h b/common.h
index 3cbe4ac..7862121 100644
--- a/common.h
+++ b/common.h
@@ -13,6 +13,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <strings.h>
#include <time.h>
#include <unistd.h>
@@ -20,7 +21,23 @@
#include <libudev.h>
+#define ELEMSOF(A) (sizeof(A) / sizeof(*(A)))
+
+
struct libgamepad_attachment_monitor {
struct udev *udev;
struct udev_monitor *monitor;
};
+
+
+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"
+];