ui: key press callbacks (not finished)
This commit is contained in:
@@ -3,9 +3,26 @@
|
||||
|
||||
#ifndef COMMON_H
|
||||
#define COMMON_H
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
typedef struct {
|
||||
uint32_t cur_y, cur_x;
|
||||
uint32_t max_y, max_x;
|
||||
} coordinates_t;
|
||||
|
||||
#define MAIN_UI_RESET(app) \
|
||||
app->main_ui.ui = NULL; \
|
||||
app->main_ui.cb_refresh = NULL; \
|
||||
app->main_ui.cb_b_press = NULL; \
|
||||
app->main_ui.b_keys = NULL;
|
||||
|
||||
|
||||
struct action_key {
|
||||
char *const key;
|
||||
char *const title;
|
||||
int const code;
|
||||
int (*callback)(void *app, void *d_args);
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user