Re: In-game keyboard configuration
Posted: Wed Jul 28, 2021 12:05 am
More thoughts on the format. Take this current example:
Translating this into the new format would look like this (I've removed the mod1/mod2 lines to keep this brief):
In some ways this could confusing, because you could be forgiven for thinking this would be an equivalent:
(At least on US/UK QWERTY keyboards).
And some things would be quite impossible to translate. For instance:I'm not aware of any keyboard layouts that put "!" on a non-shifted key - it's usually Shift+1, or Shift+something. So how do you shift something that is already shifted to being with?
Not sure if I'm overthinking this now (quite possible, running a little low on sleep atm), or if this even needs addressing via code (it might be better left for documentation). But I thought I'd put it out there for further reflection.
Code: Select all
key_prev_compass_mode = "|";
Code: Select all
key_prev_compass_mode = {
key = "|";
shift = false;
};
Code: Select all
key_prev_compass_mode = {
key = "\";
shift = true;
};
And some things would be quite impossible to translate. For instance:
Code: Select all
key_new_function = {
key = "!";
shift = true;
};
Not sure if I'm overthinking this now (quite possible, running a little low on sleep atm), or if this even needs addressing via code (it might be better left for documentation). But I thought I'd put it out there for further reflection.