project for a (works on my devices) demo

This commit is contained in:
beno
2026-03-13 16:48:03 +01:00
parent 0c0b42fbd0
commit 7ca7ec5d61
38 changed files with 4797 additions and 62 deletions

25
sources/glut_extensions.c Normal file
View File

@@ -0,0 +1,25 @@
#include <stdlib.h>
#include "../headers/glut_extensions.h"
#include "../headers/input/touch/touch_controller_L1_builder.h"
#include "../headers/input/touch/touch_controller_L2.h"
#include "../headers/input/touch/touch_controller_L3.h"
uint8_t get_count_fallback() { return 0; }
static const touch_data_proxy touch_proxy = {
.get_count = get_count_fallback,
.get_tracked_events = TC_L1_builder_copy_tracked_events,
.getAABB = TC_L2_getAABB,
.get_width = TC_L2_get_width,
.get_angle = TC_L2_get_angle,
.get_midpoint = TC_L2_get_midpoint,
.get_position_deltas = TC_L3_get_position_deltas,
.get_angle_delta = TC_L3_get_angle_delta,
.get_midpoint_delta = TC_L3_get_midpoint_delta
};
touch_data_proxy glutGetTouchProxy(){
return touch_proxy;
}