feat: initial ANODE desktop environment adapted from Geminux

This commit is contained in:
Luxferre committed 2026-11-26 11:34:53 +02:00
commit 65bfe3c65a
137 files changed
+33788

No files matched your search

+35
View File
@@ -0,0 +1,35 @@
/*
* ANODE touch gesture classification engine
*/
#ifndef ANODE_TOUCH_GESTURE_H
#define ANODE_TOUCH_GESTURE_H
#include <stdbool.h>
#include <stdint.h>
typedef enum {
ANODE_GEST_NONE = 0,
ANODE_GEST_LAUNCHER,
ANODE_GEST_VKBD_TOGGLE,
ANODE_GEST_CONTROL,
ANODE_GEST_CYCLE_WIN
} anode_gesture_t;
typedef struct {
bool active;
unsigned int detail;
double start_x;
double start_y;
double last_x;
double last_y;
uint64_t start_ms;
} anode_touch_track_t;
void anode_touch_begin(anode_touch_track_t *tr, unsigned int detail,
double x, double y, uint64_t now_ms);
void anode_touch_update(anode_touch_track_t *tr, double x, double y);
anode_gesture_t anode_touch_finish(anode_touch_track_t *tr,
double x, double y, uint64_t now_ms,
int screen_w, int screen_h, double scale);
#endif /* ANODE_TOUCH_GESTURE_H */