project for a (works on my devices) demo
This commit is contained in:
22
headers/input/touch/touch_controller_L3_deltas_compute.h
Normal file
22
headers/input/touch/touch_controller_L3_deltas_compute.h
Normal file
@@ -0,0 +1,22 @@
|
||||
#pragma once
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
typedef struct {
|
||||
uint8_t state; /* entered unchanged exited */
|
||||
uint8_t old_index;
|
||||
uint8_t new_index;
|
||||
uint64_t tracking_id;
|
||||
} tracked_delta;
|
||||
|
||||
/* could also resort to TRANSIENT / PERSISTENT */
|
||||
static const uint8_t TRACKED_DELTA_ENTERED = 0;
|
||||
static const uint8_t TRACKED_DELTA_UNCHANGED = 1;
|
||||
static const uint8_t TRACKED_DELTA_EXITED = 2;
|
||||
|
||||
|
||||
void touch_events_sorted_ids_deltas(
|
||||
tracked_delta **endbuffer, uint16_t *endcount,
|
||||
uint64_t *previous_ids, uint8_t previous_count,
|
||||
uint64_t *current_ids, uint8_t current_count
|
||||
);
|
||||
Reference in New Issue
Block a user