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

Special keys do not work on a qwertz keyboard anymore

10 posts, 1165 views
Post comment
Filter:    Player:  
sort
Before the new engine it worked on a qwertz keyboard. But now I can't use the keys ä ö ü ß < , . ´ # + anymore. (+ only works on numpad.) I can't use lots of my keybinds anymore now.

In this context it is imortant to look at the Rotate Buildings Thread. Rotating buildings has been fixed in the code (rebound to insert and delete), but I had to update my zk_keys.lua manually. Still switching integral menu tabs with , and . or binding other special keys is not possible yet.

Of course rebinding not working commands to working keys in zk_keys.lua is not that difficult, but needs some effort and a real solution would make all keys work, because otherwise there is a deficit in bindable keys.

The key files here (in the truest sense of the word) seem to be:
https://github.com/ZeroK-RTS/Zero-K/blob/master/LuaUI/Configs/zk_keys.lua
quote:
https://github.com/ZeroK-RTS/Zero-K/blob/master/LuaUI/Configs/transkey.lua
Use this file as a reference for keycodes:
https://github.com/spring/spring/blob/develop/cont/LuaUI/Headers/keysym.h.lua

How did it work before the engine change? Would it be enough to add the following code to transkey.lua or are completely other files needed?:
hash='#',
plus='+',
less='<',
world_1='0x0a0',
world_2='0x0a1',
...
world_95='0x0ff',

Btw there's an error in line 53 of transkey.lua. It must be:
rightparen=')',
+3 / -0
8 years ago
Don't u have different keyboard layers (Like me, I have EN and RU) ?
+0 / -0
Skasi
8 years ago
Probably related to issue 624?

RUrankbanana_Ai, the keyboard layout can be toggled via Spring somehow, but qwertz keyboard don't come with all the labels of a qwerty, so you wouldn't know where #, +, < etc are.
+0 / -0
I mean change keyboard layout in system.
I think it should work. Also, the new engine uses Unicode, so any non ASCII characters must be in UTF8 or UTF16 (I don't remember which one).

quote:
but qwertz keyboard don't come with all the labels of a qwerty

Really? Don't u have stuff like this?

+0 / -0
Skasi
8 years ago
Nope, this is all I've got.
+0 / -0

8 years ago
German keyboards don't use a completely different alphabet (much like various other keyboards around the world). Skasi's image is an accurate representation of how most German keyboards will end up looking.

For that reason, switching keyboard layouts every time you want to play is not only very annoying but pretty much completely unnecessary if the game handles keybinds right.
+1 / -0


8 years ago
Great place to say the entire Arabic alphabet does not render in spring 98 on windows. (On the default font, maybe?)

Try it yourself. Copy paste: مشمش

You could turn that into a widget useful for hidden communications. Nobody would ever know....
+0 / -0
Is there anything wrong with the default keybinds? Otherwise I do not care at the moment. This is also probably something which the engine needs to handle because the recent library updates are probably the culprit.

I see a minor issue with the default keybinds regarding the swapped Z and Y. Fixing this would require automatic German keyboard detection.

DErankBrackman you could try editing those config files to see if your problem is solved. I will not try because I do not have a German keyboard.
+0 / -0
8 years ago
Anyway, @Shamanpluk, the engine doesn't support any languages which aren't left to right.
+0 / -0
quote:
Is there anything wrong with the default keybinds?

Yes, , and . do not work, not even if I change my keyboard layer to EN, where all the rest works. , and . are the default keys to switch integral menu tabs and gui opacity. (Ok, not that impotant functions, but worrying that it doesn't even work in EN even though I don't find the responsible error in the code.) Before the engine change it worked.

(Btw I swapped insert and delete to rotate buildings, because I find it more intuitive. The error with ')' on azerty keyboards seems to be not yet fixed in the code. And it seems one or another key file, where the actual things are going on, is still to be found.)
+0 / -0