home
·
contact
·
privacy
projects
/
plomrogue
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Heavy refactoring of all file I/O and some memory handling; also repaired some incons...
[plomrogue]
/
src
/
keybindings.h
diff --git
a/src/keybindings.h
b/src/keybindings.h
index 9c2296584211b31f973b5dea7d587355db0b2a5d..e0fdadb7a0818b9826f246d3e85c16e0862935cd 100644
(file)
--- 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
{
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. */
/* 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);