#ifndef MY_HEADERS #define MY_HEADERS #include "headers.h" #endif #ifndef MY_CONSTANTS #define MY_CONSTANTS #include "constants.h" #endif struct button_state { FLT time; enum SurviveButton button_id; enum SurviveInputEvent button_state; uint8_t axis_count; enum SurviveAxis axis_ids[SURVIVE_MAX_AXIS_COUNT]; SurviveAxisVal_t axis_val[SURVIVE_MAX_AXIS_COUNT]; }; bool is_safety_button(); void reset_button_states(); bool find_controller(SurviveSimpleContext *actx); void update_buttons_state(const SurviveSimpleButtonEvent *button_event); void get_trackpad_xy(double *x, double *y);