-
Notifications
You must be signed in to change notification settings - Fork 64
Alternate Keymap Support #64
Comments
Also see discussion in #47 |
Hi ZachHaber. I've looked at the code to add support for my own Azerty keyboard and already have some conditionals working (thought currently in a very rough state). Unfortunately the way i did it would require separate conditions for every keyboard so not very useful for more than 2 layouts. I will try to see whether we can still read the game database from the Lua code as we could in Civ5 or not. If it's possible, it should be possible to create a custom table holding user-defined keybindings. Those could be defined in a simple sql file structured like an ini file. It would require rewriting all the keybindings in WorldInput.lua but everyone could, in theory, define their own keybindings if done this way. I havn't used Lua (or any other scripting language) for quite some time thought, am not a coder and am also learning Git as i go so i'm working slowly. |
OK. I have successfully created custom tables in the database and read them from within WorldInput so it is possible to create user-configurable keybindings. I think it's something that need to be done as new hotkeys are likely to get added, we already have a lot of them, and ultimately everyone will have some hotkeys they want to change. Here's the changes i plan to implement
|
👍 for this feature. AWSD is clearly not easy to use on an AZERTY layout ;) |
Absorbing this ticket into #536 |
Hi, I'm using the Dvorak keyboard layout (still is a Qwerty keyboard, though), and I was wondering if it would be possible to add support to alternate keyboard layouts with the keybindings for those added by the mod (and by the game if possible 😄). It is always a pain for me to switch keyboard layouts for a game and then remember to switch back every time I need to type something, and it isn't possible to change keybindings for this mod without changing code probably until the persistent settings menu is finished.
I honestly have no idea how hard this would be to implement, or even if it is possible with or without the sdk for the game.
The text was updated successfully, but these errors were encountered: