flags to discard events and preserve timestamps

This commit is contained in:
Denis 2023-11-13 00:42:51 +01:00
parent b690e6d9a6
commit b9654ab7ec
No known key found for this signature in database
GPG key ID: DD9B63F805CF5C03
4 changed files with 29 additions and 24 deletions

View file

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