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
325 B
17 lines
325 B
#pragma once
|
|
|
|
#include "stdbool.h"
|
|
|
|
typedef struct
|
|
{
|
|
bool key_before_state;
|
|
bool key_now_state;
|
|
} T_key_structer_t;
|
|
|
|
typedef bool (*key_cb)(void);
|
|
|
|
void T_key_init(T_key_structer_t *T_key_structer);
|
|
void T_key_registered_cb(key_cb cb);
|
|
void T_key_on_event(void);
|
|
void T_key_schedule(void);
|
|
bool T_key_get_level(void);
|