[PATCH] dynkey

10 views
Skip to first unread message

Stanislav Traykov

unread,
Dec 19, 2003, 1:40:40 PM12/19/03
to
The qwertz_layout patch just didn't feel right, so here's dynkey.
Dynkey is a patch to ease up your pinky. Beware: it's a cheap hack but
it works (I hope).

Define DYNKEY in config.h and add lines:

MAPPING=<key> <function>

to your configuration file. The right part is not especially
clever--you'll have to type the standard nethack key for that
function. Think of it as mildly inconvenient function nomenclature..

If you had a German keyboard, you'd want:

MAP=z y
MAP=y z
MAP=Z Y
MAP=Y Z
MAP=C-z C-y
MAP=C-y C-z
MAP=M-z M-y
MAP=M-y M-z

If abbreviating MAPPING to MAP does not satisfy your laziness: the
above can also be written as:

SWAP=z y
SWAP=Z Y
SWAP=C-z C-y
SWAP=M-z M-y

(Of course, instead of remapping these keys the patch may just as well
crash your game as it hasn't been tested well.)

http://home.in.tum.de/~traykovs/nethack/dynkey-343.diff

--
Stanislav Traykov http://home.cs.tum.edu/traykovs/

Reply all
Reply to author
Forward
0 new messages