#pragma once #include #include "input/touch/touch_data.h" typedef struct { uint8_t ( *get_count) ( void); void ( *get_tracked_events) ( touch_event ***store, uint8_t *count); touch_coordinates* ( *getAABB) ( touch_event **events, uint8_t count); float ( *get_width) ( touch_event **events, uint8_t count); float ( *get_angle) ( touch_event **events, uint8_t count); touch_coordinates* ( *get_midpoint) ( touch_event **events, uint8_t count); void ( *get_position_deltas) ( touch_event **previous, uint8_t previous_count, touch_event **current, uint8_t current_count, touch_coordinates **deltas, uint8_t *count ); float ( *get_angle_delta) ( float previous_angle, float current_angle); touch_coordinates* ( *get_midpoint_delta) ( touch_coordinates previous, touch_coordinates current); } touch_data_proxy; touch_data_proxy glutGetTouchProxy();