X-Git-Url: https://plomlompom.com/repos/foo.html?a=blobdiff_plain;f=src%2Fkeybindings.h;h=e0fdadb7a0818b9826f246d3e85c16e0862935cd;hb=ec5c4edd169be8fe8c778cabdfc7ada665629ffd;hp=9c2296584211b31f973b5dea7d587355db0b2a5d;hpb=e11aa749989942b66dfc4fd7ccb72c2c8e767332;p=plomrogue
diff --git a/src/keybindings.h b/src/keybindings.h
index 9c22965..e0fdadb 100644
--- a/src/keybindings.h
+++ b/src/keybindings.h
@@ -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);