aboutsummaryrefslogtreecommitdiffstats
path: root/libgamepad.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--libgamepad.h23
1 files changed, 7 insertions, 16 deletions
diff --git a/libgamepad.h b/libgamepad.h
index d039082..404e526 100644
--- a/libgamepad.h
+++ b/libgamepad.h
@@ -20,6 +20,11 @@
*/
typedef struct libgamepad_attachment_monitor LIBGAMEPAD_ATTACHMENT_MONITOR;
+/**
+ * Opaque structure for internal data in `struct libgamepad_device`
+ */
+typedef struct libgamepad_device_internals LIBGAMEPAD_DEVICE_INTERNALS;
+
/**
* Device attachment event type
@@ -1259,18 +1264,9 @@ struct libgamepad_device {
unsigned int version;
/**
- * FOR INTERNAL USE
- *
- * Specifies whether `.fd` shall be closed with the device
+ * Data for internal use
*/
- int close_fd;
-
- /**
- * FOR INTERNAL USE
- *
- * Whether the device must be synchronised
- */
- int require_sync;
+ LIBGAMEPAD_DEVICE_INTERNALS *internals;
/**
* Human-readable device (sub- or superdevice) name
@@ -1289,11 +1285,6 @@ struct libgamepad_device {
const char *physical_location;
/**
- * libevdev instance for the device
- */
- struct libevdev *dev;
-
- /**
* Number of (digital) buttons/keys present
* on the device
*/