Unix. I need help testing this since I don't have a numpad. :-)
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@783 c06c8d41-db1a-0410-9941-cceddc491573
HXWGGNMMVGM6XIO4SBHZETFXTBPJV7OWRZKMED7BCFI4AVE7VFRAC #endif// [dshaligram] More lovely keypad mangling.switch (keyin){#ifdef UNIXcase '1': return 'b';case '2': return 'j';case '3': return 'n';case '4': return 'h';case '6': return 'l';case '7': return 'y';case '8': return 'k';case '9': return 'u';#elsecase '1': return 'B';case '2': return 'J';case '3': return 'N';case '4': return 'H';case '6': return 'L';case '7': return 'Y';case '8': return 'K';case '9': return 'U';
#ifdef UNIXcase '1': return CMD_MOVE_DOWN_LEFT;case '2': return CMD_MOVE_DOWN;case '3': return CMD_MOVE_DOWN_RIGHT;case '4': return CMD_MOVE_LEFT;case '5': return CMD_REST;case '6': return CMD_MOVE_RIGHT;case '7': return CMD_MOVE_UP_LEFT;case '8': return CMD_MOVE_UP;case '9': return CMD_MOVE_UP_RIGHT;#elsecase '1': return CMD_RUN_DOWN_LEFT;case '2': return CMD_RUN_DOWN;case '3': return CMD_RUN_DOWN_RIGHT;case '4': return CMD_RUN_LEFT;case '5': return CMD_REST;case '6': return CMD_RUN_RIGHT;case '7': return CMD_RUN_UP_LEFT;case '8': return CMD_RUN_UP;case '9': return CMD_RUN_UP_RIGHT;#endif