You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
446 B

3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
  1. #pragma once
  2. #include "stdbool.h"
  3. typedef struct
  4. {
  5. bool key_before_state;
  6. bool key_now_state;
  7. } T_key_structer_t;
  8. typedef bool (*key_camera_cb)(void);
  9. typedef void (*key_event_cb)(void);
  10. void T_key_init(T_key_structer_t *T_key_structer);
  11. void T_key_registered_cb(key_camera_cb camera_cb, key_event_cb successful_event_cb, key_event_cb failed_event_cb);
  12. void T_key_on_event(void);
  13. void T_key_schedule(void);
  14. bool T_key_get_level(void);