Loading...
  OR  Zero-K Name:    Password:   

Request: Dvorak KB layout support

7 posts, 773 views
Post comment
Filter:    Player:  
sort
RUrankHuj
9 years ago
Classical, not "Dvorak for programmers" or so.

For testing devs can install such layout via standart tools of Windows.
+0 / -0
9 years ago
You can just rebind your keys instead, wich should not be a problem for a guy with "programer" status.
+0 / -1


9 years ago
Are you going to tell everyone with a Dvorak KB to do this? It is probably acceptable if Dvorak users have to tick one box in settings to make the hotkeys work. Nothing beyond that though.

This file could be changed or the reading of it could be changed. Epic menu may already have this functionality.
https://github.com/ZeroK-RTS/Zero-K/blob/master/LuaUI/Configs/zk_keys.lua

This table needs to be changed through some options.
https://github.com/ZeroK-RTS/Zero-K/blob/master/LuaUI/Widgets/gui_chili_integral_menu.lua#L208
+1 / -0
Key bindings needed to be changed only for commands for units, not to whole interface. I found place after "local gridMap = {..." section. If i send you new bindings, can you add an option to select between "qwerty" and Dvorak's?

May be teoretically unlimited amount of additional layots should be implemented (if not already done), with an ability to choose any during game.
+0 / -0
9 years ago
I have some modifications I made to zk_keys.lua, gui_chili_integral_menu.lua, gui_chili_gesture_menu.lua, and marking_menu_keys(orwhateveritscalled).lua for dvorak. I haven't made it exactly configurable yet, but "I've been planning on it" to push a patch at some point.

One annoying part is that you do have to go through and change the main Spring keybindings. I'm not sure how to make that configurable.
+0 / -0
...In another words, i am requesting to change only positionally assigned keys (used to select building in the builder menu, may be in some other places).

If action is assigned to letter=key, no need to change.
+0 / -0
9 years ago
Since there's no guarantee I'll ever get around to actually making a patch, here are my versions of the following files:

Here's my LuaUI/Widgets/gui_chili_integral_menu.lua:
https://gist.github.com/kmill/8c79627d25d8036745c1

Here's my LuaUI/Widgets/gui_chili_gesture_menu.lua:
https://gist.github.com/kmill/ab0f30ed4de3d3740260

Here's my LuaUI/Configs/marking_menu_keys.lua:
https://gist.github.com/kmill/ac7ad0804f5fe9e1687d

The patch to marking_menu_keys is only used by my patch to gui_chili_gesture_menu.
+0 / -0