From c7f2e6e163edebb3b443aa89e2abec2f512b37ed Mon Sep 17 00:00:00 2001 From: libretroadmin Date: Thu, 23 Feb 2023 19:06:55 +0100 Subject: [PATCH] Buildfix --- input/connect/connect_retrode.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/input/connect/connect_retrode.c b/input/connect/connect_retrode.c index e24be861a7..cd3bb1a62b 100644 --- a/input/connect/connect_retrode.c +++ b/input/connect/connect_retrode.c @@ -28,7 +28,10 @@ #define RETRODE_TYPE_DEVICE 0x00 #define RETRODE_TYPE_PAD 0x01 -typedef struct hidpad_retrode_pad_data +typedef struct hidpad_retrode_pad_data retrode_pad_data_t; +typedef struct hidpad_retrode_data retrode_device_data_t; + +struct hidpad_retrode_pad_data { uint8_t datatype; retrode_device_data_t *device_data; @@ -36,16 +39,16 @@ typedef struct hidpad_retrode_pad_data int pad_index; uint32_t buttons; uint8_t data[64]; -} hidpad_retrode_pad_data_t; +}; -typedef struct hidpad_retrode_data +struct hidpad_retrode_data { uint8_t datatype; void *handle; hid_driver_t *driver; retrode_pad_data_t pad_data[RETRODE_MAX_PAD]; uint8_t data[64]; -} hidpad_retrode_data_t; +}; static void* hidpad_retrode_init(void *data, uint32_t slot, hid_driver_t *driver) {