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