mirror of
https://github.com/stupidcomputer/jsfw.git
synced 2024-12-26 21:42:23 -06:00
22 lines
328 B
C
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
|