X-Git-Url: https://plomlompom.com/repos/?a=blobdiff_plain;ds=sidebyside;f=keybindings.h;h=b0ff912944040920edfe6ee022c27d51c4e99f43;hb=b20abc6c11c56207cc32fc74765650ce7e4753c8;hp=3295f2d0bbfa171b53a1f54f2ae449863ea124a9;hpb=122747fbbdc061942de2fc2bca901a44a6b4ab61;p=plomrogue diff --git a/keybindings.h b/keybindings.h index 3295f2d..b0ff912 100644 --- a/keybindings.h +++ b/keybindings.h @@ -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);