driver interface updates, included in razer/gwolve
This commit is contained in:
parent
de3167d140
commit
69c9b6e342
@ -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…
Reference in New Issue
Block a user