Files
my_glut/sources/glut_extensions.c

26 lines
754 B
C
Raw Normal View History

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