+extern char * get_func_to_keycode(struct KeyBinding * kb_p, uint16_t key)
+{
+ while (0 != kb_p)
+ {
+ if (key == kb_p->key)
+ {
+ return kb_p->name;
+ }
+ kb_p = kb_p->next;
+ }
+ return NULL;
+}
+
+
+
extern uint16_t get_keycode_to_action(struct KeyBinding * kb_p, char * name)
{
while (0 != kb_p)
char * f_name = "init_keybindings()";
FILE * file = try_fopen(path, "r", f_name);
- uint16_t lines, linemax;
- char * err = "textfile_sizes() in init_keybindings() returns error.";
- exit_err(textfile_sizes(file, &linemax, &lines), err);
+ uint16_t lines;
+ uint16_t linemax = textfile_sizes(file, &lines);
char command[linemax + 1];
char * cmdptr;
extern void mod_selected_keyb(struct KeyBiData * kbd)
{
kbd->edit = 1;
- char * err = "Trouble with draw_all_wins() in mod_selected_keyb().";
- exit_err(draw_all_wins(world.wmeta), err);
+ draw_all_wins();
int key = getch();
if (key < 1000)
{