From 69c9b6e342c780d1921bc1c495fb850326cddc58 Mon Sep 17 00:00:00 2001 From: vhaudiquet Date: Thu, 28 Sep 2023 14:52:17 +0200 Subject: [PATCH] driver interface updates, included in razer/gwolve --- drivers/g-wolves/g-wolves.h | 3 +++ drivers/razer/razer.h | 5 +++++ src/device/driver_interface.h | 4 ++-- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/drivers/g-wolves/g-wolves.h b/drivers/g-wolves/g-wolves.h index 10ce59f..2c9475c 100644 --- a/drivers/g-wolves/g-wolves.h +++ b/drivers/g-wolves/g-wolves.h @@ -12,6 +12,9 @@ #include #include +// Driver interface +#include "../../src/device/driver_interface.h" + // Devices #include "devices/htx.h" #include "devices/hts_plus.h" diff --git a/drivers/razer/razer.h b/drivers/razer/razer.h index eca5b02..fd10b4b 100644 --- a/drivers/razer/razer.h +++ b/drivers/razer/razer.h @@ -4,6 +4,11 @@ #include #include #include +#include +#include + +// Driver interface +#include "../../src/device/driver_interface.h" #define VENDOR_ID 0x1532 diff --git a/src/device/driver_interface.h b/src/device/driver_interface.h index bc32dc5..11bdbc4 100644 --- a/src/device/driver_interface.h +++ b/src/device/driver_interface.h @@ -1,11 +1,11 @@ #ifndef DRIVER_INTERFACE_H #define DRIVER_INTERFACE_H -enum device_capacity_t +typedef enum DEVICE_CAPACITY { DEVICE_CAPACITY_MOUSE, DEVICE_CAPACITY_WIRELESS, -}; +} device_capacity_t; void driver_init(); // Initialization uint32_t driver_getkey(); // Calls to this function must return USB keys that this driver registers, until 0