driver interface updates, included in razer/gwolve

master
vhaudiquet 1 year ago
parent de3167d140
commit 69c9b6e342
  1. 3
      drivers/g-wolves/g-wolves.h
  2. 5
      drivers/razer/razer.h
  3. 4
      src/device/driver_interface.h

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

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

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

Loading…
Cancel
Save