Input dev finally works

This commit is contained in:
Denis 2023-11-11 03:41:08 +01:00
parent 0557006254
commit 85e6e78b8c
No known key found for this signature in database
GPG key ID: DD9B63F805CF5C03
2 changed files with 3 additions and 3 deletions

View file

@ -166,9 +166,9 @@ static void* input_read_thread_func(void* ptr) {
if (rc == 0) {
const int is_syn = (read_ev.type == EV_SYN) && (read_ev.code == SYN_REPORT);
if ((read_ev.code == MSC_TIMESTAMP) && (read_ev.type = EV_MSC)) {
if ((read_ev.code == MSC_TIMESTAMP) && (read_ev.type == EV_MSC)) {
// the output device will handle that
printf("MSC_TIMESTAMP found. Ignoring...");
//printf("MSC_TIMESTAMP found. Ignoring...\n");
continue;
}

View file

@ -2,7 +2,7 @@
#include "queue.h"
#define INCLUDE_INPUT_DEBUG
#undef INCLUDE_INPUT_DEBUG
#define INPUT_DEV_CTRL_FLAG_EXIT 0x00000001U