From: PatR Date: Sat, 28 May 2016 01:39:17 +0000 (-0700) Subject: number_pad:-1 qwertz keyboard X-Git-Tag: NetHack-3.6.1_RC01~735 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cb14aa332d7f0c05049b25a6a1ff4b7f5563f8f9;p=nethack number_pad:-1 qwertz keyboard Reported almost exactly one year ago by a beta tester proofreading the Guidebook, the number_pad setting to support the German keyboard which swaps the Y and Z keys is for a keyboard that is used in other places too. The report mentioned France and Belgium; Wikipedia's "keyboard layout" entry mentions "Germany, Austria, Switzerland and other parts of Central Europe". This changes references to "German keyboard" (there were only a couple) into "QWERTZ keyboard". --- diff --git a/doc/Guidebook.mn b/doc/Guidebook.mn index 1666c19c5..fb73c4de2 100644 --- a/doc/Guidebook.mn +++ b/doc/Guidebook.mn @@ -2388,7 +2388,7 @@ is the same as specifying 0. (Settings 2 and 4 are for compatibility with MSDOS or old PC Hack; in addition to the different behavior for `5', `Alt-5' acts as `G' and `Alt-0' acts as `I'. -Setting -1 is to accommodate some German keyboards which have the +Setting -1 is to accommodate some QWERTZ keyboards which have the location of the `y' and `z' keys swapped.) When moving by numbers, to enter a count prefix for those commands which accept one (such as ``12s'' to search twelve times), precede it diff --git a/doc/Guidebook.tex b/doc/Guidebook.tex index 45e010893..55c9960bc 100644 --- a/doc/Guidebook.tex +++ b/doc/Guidebook.tex @@ -2845,7 +2845,7 @@ is the same as specifying {\tt 0}. (Settings {\tt 2} and {\tt 4} are for compatibility with MSDOS or old PC Hack; in addition to the different behavior for `{\tt 5}', `{\tt Alt-5}' acts as `{\tt G}' and `{\tt Alt-0}' acts as `{\tt I}'. -Setting {\tt -1} is to accommodate some German keyboards which have the +Setting {\tt -1} is to accommodate some QWERTZ keyboards which have the location of the `{\tt y}' and `{\tt z}' keys swapped.) When moving by numbers, to enter a count prefix for those commands which accept one (such as ``{\tt 12s}'' to search twelve times), precede it diff --git a/include/flag.h b/include/flag.h index 4136070ab..4480b43b3 100644 --- a/include/flag.h +++ b/include/flag.h @@ -434,7 +434,7 @@ struct cmd { boolean num_pad; /* same as iflags.num_pad except during updates */ boolean pcHack_compat; /* for numpad: affects 5, M-5, and M-0 */ boolean phone_layout; /* inverted keypad: 1,2,3 above, 7,8,9 below */ - boolean swap_yz; /* German keyboards; use z to move NW, y to zap */ + boolean swap_yz; /* QWERTZ keyboards; use z to move NW, y to zap */ char move_W, move_NW, move_N, move_NE, move_E, move_SE, move_S, move_SW; const char *dirchars; /* current movement/direction characters */ const char *alphadirchars; /* same as dirchars if !numpad */ diff --git a/src/cmd.c b/src/cmd.c index b4e126604..d33d3c431 100644 --- a/src/cmd.c +++ b/src/cmd.c @@ -3350,7 +3350,8 @@ boolean initial; Cmd.num_pad = flagtemp; ++updated; } - /* swap_yz mode (only applicable for !num_pad) */ + /* swap_yz mode (only applicable for !num_pad); intended for + QWERTZ keyboard used in Central Europe, particularly Germany */ flagtemp = (iflags.num_pad_mode & 1) ? !Cmd.num_pad : FALSE; if (flagtemp != Cmd.swap_yz) { Cmd.swap_yz = flagtemp;