home · contact · privacy
Added command to focus map on player.
[plomrogue] / src / keybindings.h
index b0ff912944040920edfe6ee022c27d51c4e99f43..4cdcd5a1fdd9350f7a6e76b3b1bf69df1acc871b 100644 (file)
@@ -1,3 +1,11 @@
+#ifndef KEYBINDINGS_H
+#define KEYBINDINGS_H
+
+#include <stdint.h>
+
+struct World;
+struct WinMeta;
+
 struct KeyBinding {
   char * name;
   uint16_t key; };
@@ -7,9 +15,11 @@ struct KeysWinData {
   char edit;
   uint16_t select; };
 
-void init_keybindings(struct World *);
-void save_keybindings(struct World *);
-uint16_t get_action_key (struct KeyBinding *, char *);
-char * get_keyname(uint16_t);
-void keyswin_mod_key (struct World *, struct WinMeta *);
-void keyswin_move_selection (struct World *, char);
+extern void init_keybindings(struct World *);
+extern void save_keybindings(struct World *);
+extern uint16_t get_action_key (struct KeyBinding *, char *);
+extern char * get_keyname(uint16_t);
+extern void keyswin_mod_key (struct World *, struct WinMeta *);
+extern void keyswin_move_selection (struct World *, char);
+
+#endif