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.

16 lines
325 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
  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_cb)(void);
  9. void T_key_init(T_key_structer_t *T_key_structer);
  10. void T_key_registered_cb(key_cb cb);
  11. void T_key_on_event(void);
  12. void T_key_schedule(void);
  13. bool T_key_get_level(void);