flags to discard events and preserve timestamps
This commit is contained in:
parent
b690e6d9a6
commit
b9654ab7ec
4 changed files with 29 additions and 24 deletions
|
|
@ -14,7 +14,8 @@ typedef struct message {
|
|||
volatile uint32_t flags;
|
||||
} message_t;
|
||||
|
||||
#define INPUT_FILTER_RESULT_OK 0
|
||||
#define INPUT_FILTER_RESULT_DO_NOT_EMIT 1
|
||||
#define INPUT_FILTER_FLAGS_NONE 0x00000000U
|
||||
#define INPUT_FILTER_FLAGS_DO_NOT_EMIT 0x00000001U
|
||||
#define INPUT_FILTER_FLAGS_PRESERVE_TIME 0x00000002U
|
||||
|
||||
typedef int (*input_filter_t)(struct input_event*, size_t*, uint32_t*);
|
||||
typedef uint32_t (*input_filter_t)(struct input_event*, size_t*, uint32_t*);
|
||||
Loading…
Add table
Add a link
Reference in a new issue