home · contact · privacy
Silently ignore characters in config/windows/toggle_order to which no window exists.
[plomrogue] / src / keybindings.h
index 9c2296584211b31f973b5dea7d587355db0b2a5d..e0fdadb7a0818b9826f246d3e85c16e0862935cd 100644 (file)
@@ -23,12 +23,12 @@ struct KeyBinding
 
 
 
-/* Metadata for the keybindings plurality and their editing window. */
+/* Metadata used by the keybinding editing window. */
 struct KeysWinData
 {
-  uint16_t max;    /* ? */
-  char edit;       /* ? */
-  uint16_t select; /* ? */
+  uint16_t max;    /* index of last keybinding (= n of keybindings - 1) */
+  char edit;       /* 1 if currently editing a keybinding, else 0 */
+  uint16_t select; /* index of keybinding selected for editing */
 };
 
 
@@ -45,7 +45,7 @@ extern uint16_t get_action_key(struct KeyBinding * keybindings, char * name);
 
 
 /* Translate keycode to readable names of max 9 chars where possible. */
-extern char * get_keyname(uint16_t keycode);
+extern char * get_keyname(struct World * world, uint16_t keycode);