Files
my_glut/headers/input/touch/touch_controller_L3_deltas_compute.h

23 lines
563 B
C
Raw Normal View History

#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
);