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.
20 lines
475 B
20 lines
475 B
#pragma once
|
|
|
|
#include <stdbool.h>
|
|
#include <stdint.h>
|
|
|
|
typedef struct
|
|
{
|
|
bool key_before_state;
|
|
bool key_now_state;
|
|
uint32_t key_start_time;
|
|
} T_key_structer_t;
|
|
|
|
typedef bool (*key_camera_cb)(void);
|
|
typedef void (*key_event_cb)(void);
|
|
|
|
void T_key_init(T_key_structer_t *T_key_structer);
|
|
void T_key_registered_cb(key_event_cb short_press_event_cb, key_event_cb long_press_event_cb);
|
|
void T_key_on_event(void);
|
|
void T_key_schedule(void);
|
|
bool T_key_get_level(void);
|