Page 1 of 1

Keybindings for QWERTZ keyboard layout

PostPosted: Sunday, 11th January 2015, 21:56
by Wuzzy
Hi! I have added a few lines to my $HOME/.crawlrc file so the keyboard assignments make more sense on a QWERTZ keyboard layout. I suppose this is usable for other QWERTZ users as well. Maybe it is even good enough to be distributed by default with DCSS (like the other “command_keys.txt” files)?

Here is the code:
  Code:
bindkey = [z] CMD_MAP_MOVE_UP_LEFT
bindkey = [Z] CMD_MAP_JUMP_UP_LEFT

bindkey = [z] CMD_MOVE_UP_LEFT
bindkey = [Z] CMD_RUN_UP_LEFT
bindkey = [^Z] CMD_OPEN_DOOR_UP_LEFT

bindkey = [z] CMD_TARGET_UP_LEFT
bindkey = [Z] CMD_TARGET_DIR_UP_LEFT

bindkey = [y] CMD_CAST_SPELL
bindkey = [Y] CMD_FORCE_CAST_SPELL

bindkey = [^Y] CMD_SUSPEND_GAME


Basically this just switches Z with Y. So the movement keys finally make sense under QWERTZ, and casting a smell is now on [y] and [Y]. Fun fact: In the in-game key help it now says “yap” and “Yap”. :D

Everything else is unchanged, because I think the other keys are not so important, after all and it does not matter so much if they are displaced if compared to QWERTY.

Re: Keybindings for QWERTZ keyboard layout

PostPosted: Monday, 12th January 2015, 15:18
by Galefury
Thanks, I will try this! Maybe now I can finally use vi keys.

Re: Keybindings for QWERTZ keyboard layout

PostPosted: Wednesday, 14th January 2015, 01:00
by wheals
Isn't this what the "remapping" feature in ctrl-d is for?

Re: Keybindings for QWERTZ keyboard layout

PostPosted: Wednesday, 14th January 2015, 13:25
by Galefury
ctrl-d?

Re: Keybindings for QWERTZ keyboard layout

PostPosted: Wednesday, 14th January 2015, 21:56
by wheals
Hm, never mind. (I was thinking of the option to make a '(k)eymap' at the macro prompt, but that would swap Z and Y in menus, for instance, which doesn't seem to be what you want.)