forked from NeroReflex/ROGueENEMY
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathinput_dev.h
More file actions
52 lines (35 loc) · 1.22 KB
/
Copy pathinput_dev.h
File metadata and controls
52 lines (35 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#pragma once
#include "queue.h"
#include "message.h"
#include "logic.h"
#undef INCLUDE_INPUT_DEBUG
#undef IGNORE_INPUT_SCAN
typedef uint32_t (*ev_input_filter_t)(struct input_event*, size_t*, uint32_t*, uint32_t*);
typedef enum input_dev_type {
input_dev_type_uinput,
input_dev_type_iio,
input_dev_type_hidraw,
} input_dev_type_t;
typedef struct hidraw_filters {
const char* name;
} hidraw_filters_t;
typedef struct uinput_filters {
const char* name;
} uinput_filters_t;
typedef struct iio_filters {
const char* name;
} iio_filters_t;
typedef struct input_dev {
input_dev_type_t dev_type;
const uinput_filters_t* ev_filters;
const iio_filters_t* iio_filters;
const hidraw_filters_t* hidraw_filters;
ev_input_filter_t ev_input_filter_fn;
logic_t *logic;
} input_dev_t;
void sigterm_handler(int signum);
void *input_dev_thread_func(void *ptr);
int open_and_hide_input(void);
uint32_t input_filter_imu_identity(struct input_event* events, size_t* size, uint32_t* count, uint32_t* flags);
uint32_t input_filter_identity(struct input_event* events, size_t* size, uint32_t* count, uint32_t* flags);
uint32_t input_filter_asus_kb(struct input_event*, size_t*, uint32_t*, uint32_t* flags);