jsfw/hid.h

22 lines
328 B
C
Raw Normal View History

2022-08-29 18:06:25 -05:00
// vi: set ft=c
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;
2022-08-29 18:06:25 -05:00
char * name;
2022-08-29 17:27:03 -05:00
} PhysicalDevice;
void * hid_thread();
void return_device(PhysicalDevice * dev);
PhysicalDevice get_device();
2022-08-27 19:29:43 -05:00
#endif