mirror of
https://github.com/whowechina/diva_pico.git
synced 2026-10-13 01:28:11 +03:00
19 lines
374 B
C
19 lines
374 B
C
/*
|
|
* Extract gesture information from raw electrode touch bitmask.
|
|
*
|
|
* WHowe <github.com/whowechina>
|
|
*/
|
|
|
|
#ifndef GESTURE_H
|
|
#define GESTURE_H
|
|
|
|
#include <stdbool.h>
|
|
#include <stdint.h>
|
|
|
|
void gesture_reset(void);
|
|
void gesture_set_latch(int frames);
|
|
void gesture_set_debug_cluster(bool enable);
|
|
void gesture_process(uint32_t mask, uint8_t *axis_a, uint8_t *axis_b);
|
|
|
|
#endif
|