Skip to content

Instantly share code, notes, and snippets.

@kototama
Created July 17, 2018 15:53
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kototama/19c514e69c89b464067507099d5b64ec to your computer and use it in GitHub Desktop.
Save kototama/19c514e69c89b464067507099d5b64ec to your computer and use it in GitHub Desktop.
How to change direction keys in NetHack
diff --git a/src/cmd.c b/src/cmd.c
index d7303ec..44bc0b5 100644
--- a/src/cmd.c
+++ b/src/cmd.c
@@ -3927,7 +3927,8 @@ void
reset_commands(initial)
boolean initial;
{
- static const char sdir[] = "hykulnjb><",
+ static const char sdir [] = "nluyi.eh><",
sdir_swap_yz[] = "hzkulnjb><",
ndir[] = "47896321><",
ndir_phone_layout[] = "41236987><";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment