ZeroK-RTS / Zero-K

Open source RTS game running on the Spring/Recoil engine
https://zero-k.info
GNU General Public License v2.0
695 stars 209 forks source link

Merge keyboard layout configs #5216

Open sprunk opened 8 months ago

sprunk commented 8 months ago

Keyboard layout definitions are duplicated: https://github.com/ZeroK-RTS/Zero-K/blob/865be529c5657d7f2108bdb8d4d10a985f7a54d2/LuaUI/Widgets/gui_chili_keyboardmenu.lua#L781-L790 https://github.com/ZeroK-RTS/Zero-K/blob/865be529c5657d7f2108bdb8d4d10a985f7a54d2/LuaUI/Configs/keyboard_layout.lua#L92-L99

Make the keyboard menu use the dedicated config file.

sprunk commented 1 month ago

Something to investigate that may obsolete this would be scancodes which have been in the engine for about 2 years now. Scancodes identify keys by position on the standard QWERTY layout instead of by the meaning (so e.g. on an AZERTY keyboard, pressing A produces the A keycode and the Q scancode).