PDA

View Full Version : Usable keyboard config for laptop without numpad - ijkl



indigomirage
12-07-2018, 01:36 PM
Hi There -

Not sure if this is the right place to post (my first post), but I wanted to put this out into the universe if it's of use...

I've struggled with playing ADOM on a laptop without a numpad, and ended up creating a modified kbd file. Basically, it uses...:
i=North
j=West
k=South
l=East

Diagonals are done by holding the ctrl key down with the other two keys... ie - NorthWest is ctrl-i and ctrl-j in succession (or ctrl-j and ctrl-i). Fastest way is to hold down ctrl, and push j and i simultaneously (it doesn't matter which hits first).

A few other default commands are remapped to avoid overlap.

Here are the adom.kbd file changes...:

Original... Modified...

LIT:L ---> LIT::L
KST:K ---> KST::K
DLM:\Ml :l ---> DLM:~
WM?:w? - 0 ---> WM?:w?
WMI:wi ---> WMI:\9
INV:i ---> INV:\8
INM:\Ci ---> INM:\Cf
KCK:k ---> KCK:K
EXE:l ---> EXE:L
MSW:1 ---> MSW:1 \Cj\Ck \Ck\Cj
MOS:2 \D ---> MOS:2 \D k
MSE:3 ---> MSE:3 \Cl\Ck \Ck\Cl
MOW:4 \L ---> MOW:4 \L j
MOE:6 \R ---> MOE:6 \R l
MNW:7 ---> MNW:7 \Cj\Ci \Ci\Cj
MON:8 \U ---> MON:8 \U i
MNE:9 ---> MNE:9 \Ci\Cl \Cl\Ci
CMK:\Ck ---> CMK::|
WM1:w1 ---> WM1:w1 w\Cj\Ck w\Ck\Cj
WM2:w2 w\D ---> WM2:w2 w\D wk
WM3:w3 ---> WM3:w3 w\Cl\Ck w\Ck\Cl
WM4:w4 w\L ---> WM4:w4 w\L wj
WM6:w6 w\R ---> WM6:w6 w\R wl
WM7:w7 ---> WM7:w7 w\Cj\Ci w\Ci\Cj
WM8:w8 w\U ---> WM8:w8 w\U wi
WM9:w9 ---> WM9:w9 w\Ci\Cl w\Cl\Ci

(apologies for formatting)

I've (attempted to) attached a file called newkbdcfg.txt that contains the modified content. Simply replace the relevant lines in the adom.kdb file with this (back it up first, needless to say), and start the program.

I suspect that updates to the game (via Steam, or done manually) will overwrite this again, but it should be a matter of changing the configuration again to get things going.

There's a risk that new commands will overlap with these some day, but that's life...

Oh... and why not WASD? Because I've never been able to get used to this (and there are more key overlaps with other commands). ;)

Enjoy!

blunk
12-07-2018, 03:19 PM
I've gotten used to using number keys above letters when on laptop, takes a bit getting used to but it works.