1 #include "game-option/keymap-directory-getter.h"
2 #include "game-option/input-options.h"
3 #include "io/input-key-requester.h"
7 * Called from cmd4.c and a few other places. Just extracts
8 * a direction from the keymap for ch (the last direction,
9 * in fact) byte or char here? I'm thinking that keymaps should
10 * generally only apply to single keys, which makes it no more
11 * than 128, so a char should suffice... but keymap_act is 256...
13 int get_keymap_dir(char ch)
21 if (rogue_like_commands) {
22 mode = KEYMAP_MODE_ROGUE;
24 mode = KEYMAP_MODE_ORIG;
27 concptr act = keymap_act[mode][(byte)(ch)];
29 for (concptr s = act; *s; ++s) {