Improve therecmdmenu

Turning on herecmd_menu and clicking with mouse is now actually
somewhat playable.
This commit is contained in:
Pasi Kallinen
2022-04-06 21:19:36 +03:00
parent b7d9bed8c5
commit eb9c7d77d4
4 changed files with 252 additions and 84 deletions

View File

@@ -667,6 +667,7 @@ enum cmdq_cmdtypes {
CMDQ_KEY = 0, /* a literal character, cmdq_add_key() */
CMDQ_EXTCMD, /* extended command, cmdq_add_ec() */
CMDQ_DIR, /* direction, cmdq_add_dir() */
CMDQ_USER_INPUT, /* placeholder for user input, cmdq_add_userinput() */
};
struct _cmd_queue {

View File

@@ -253,6 +253,7 @@ extern void set_occupation(int(*)(void), const char *, cmdcount_nht);
extern void cmdq_add_ec(int(*)(void));
extern void cmdq_add_key(char);
extern void cmdq_add_dir(schar, schar, schar);
extern void cmdq_add_userinput(void);
extern struct _cmd_queue *cmdq_pop(void);
extern void cmdq_clear(void);
extern char pgetchar(void);