driver interface updates, included in razer/gwolve

This commit is contained in:
vhaudiquet 2023-09-28 14:52:17 +02:00
parent de3167d140
commit 69c9b6e342
3 changed files with 10 additions and 2 deletions

View File

@ -12,6 +12,9 @@
#include <assert.h>
#include <unistd.h>
// Driver interface
#include "../../src/device/driver_interface.h"
// Devices
#include "devices/htx.h"
#include "devices/hts_plus.h"

View File

@ -4,6 +4,11 @@
#include <libusb.h>
#include <stdlib.h>
#include <assert.h>
#include <unistd.h>
#include <stdbool.h>
// Driver interface
#include "../../src/device/driver_interface.h"
#define VENDOR_ID 0x1532

View File

@ -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