main_loop.h 360 B

123456789101112131415161718192021
  1. #pragma once
  2. #include <stdint.h>
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. typedef bool (*MouseMoveCallback)(int8_t x, int8_t y, void* context);
  7. void calibration_begin();
  8. bool calibration_step();
  9. void calibration_end();
  10. void tracking_begin();
  11. void tracking_step(MouseMoveCallback mouse_move, void* context);
  12. void tracking_end();
  13. #ifdef __cplusplus
  14. }
  15. #endif