Initial legion go hidraw read
This commit is contained in:
parent
b25031bb20
commit
5976d13599
4 changed files with 123 additions and 31 deletions
|
|
@ -18,7 +18,7 @@ typedef struct evdev_collected {
|
|||
* constructed from that data.
|
||||
*/
|
||||
typedef void (*ev_map)(const evdev_collected_t *const e, int in_messages_pipe_fd, void* user_data);
|
||||
typedef void (*hidraw_map)(int hidraw_fd, int in_messages_pipe_fd, void* user_data);
|
||||
typedef int (*hidraw_map)(int hidraw_fd, int in_messages_pipe_fd, void* user_data);
|
||||
|
||||
typedef enum input_dev_type {
|
||||
input_dev_type_uinput,
|
||||
|
|
@ -60,10 +60,10 @@ typedef struct input_dev {
|
|||
|
||||
void* user_data;
|
||||
|
||||
union {
|
||||
union input_dev_map {
|
||||
ev_map ev_input_map_fn;
|
||||
hidraw_map hidraw_input_map_fn;
|
||||
};
|
||||
} map;
|
||||
|
||||
} input_dev_t;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue