Initial legion go hidraw read

This commit is contained in:
Denis 2023-12-10 03:24:43 +01:00
parent b25031bb20
commit 5976d13599
No known key found for this signature in database
GPG key ID: DD9B63F805CF5C03
4 changed files with 123 additions and 31 deletions

View file

@ -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;