menu.h (629B)
1 /* 2 MNT Reform 2.0 Keyboard Firmware 3 See keyboard.c for Copyright 4 SPDX-License-Identifier: MIT 5 */ 6 7 #ifndef _MENU_H_ 8 #define _MENU_H_ 9 10 typedef struct MenuItem { 11 char* title; 12 int keycode; 13 } MenuItem; 14 15 #define MENU_PAGE_NONE 0 16 #define MENU_PAGE_OTHER 1 17 #define MENU_PAGE_BATTERY_STATUS 2 18 #define MENU_PAGE_MNT_LOGO 3 19 20 void reset_and_render_menu(void); 21 void reset_menu(void); 22 void render_menu(int y); 23 void refresh_menu_page(void); 24 int execute_menu_function(int y); 25 int execute_meta_function(int keycode); 26 void anim_hello(void); 27 void anim_goodbye(void); 28 29 #ifndef KBD_MODE_STANDALONE 30 void anim_kbd_hello(void); 31 #endif 32 33 #endif