jsfw/hid.h
2022-08-30 01:06:25 +02:00

22 lines
328 B
C

// vi: set ft=c
#ifndef HID_H
#define HID_H
#include<stdint.h>
#include<pthread.h>
#include "vec.h"
typedef uint64_t uniq_t;
typedef struct {
int event;
int hidraw;
uniq_t uniq;
char * name;
} PhysicalDevice;
void * hid_thread();
void return_device(PhysicalDevice * dev);
PhysicalDevice get_device();
#endif