home · contact · privacy
Use own pseudo-random number generator to ensure portable predictability.
[plomrogue] / keybindings.h
index 3295f2d0bbfa171b53a1f54f2ae449863ea124a9..b0ff912944040920edfe6ee022c27d51c4e99f43 100644 (file)
@@ -1,15 +1,15 @@
 struct KeyBinding {
   char * name;
-  int key; };
+  uint16_t key; };
 
 struct KeysWinData {
-  int max;
+  uint16_t max;
   char edit;
-  int select; };
+  uint16_t select; };
 
 void init_keybindings(struct World *);
 void save_keybindings(struct World *);
-int get_action_key (struct KeyBinding *, char *);
-char * get_keyname(int);
+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);