jsfw/hid.h

20 lines
295 B
C
Raw Normal View History

2022-08-27 19:29:43 -05:00
#ifndef HID_H
#define HID_H
2022-08-29 17:27:03 -05:00
#include<stdint.h>
#include<pthread.h>
#include "vec.h"
2022-08-27 19:29:43 -05:00
2022-08-29 17:27:03 -05:00
typedef uint64_t uniq_t;
2022-08-27 19:29:43 -05:00
2022-08-29 17:27:03 -05:00
typedef struct {
int event;
int hidraw;
uniq_t uniq;
} PhysicalDevice;
void * hid_thread();
void return_device(PhysicalDevice * dev);
PhysicalDevice get_device();
2022-08-27 19:29:43 -05:00
#endif