AtomicFrontierCode / keyboards

Simulated annealing code for video
MIT License
274 stars 32 forks source link

Adjust to different Keyboard Layouts #5

Open 4Source opened 7 months ago

4Source commented 7 months ago

What do I have to change to use a different keyboard layout, e.g. In Germany we don't use QWERTY, but QWERTZ and also have some special characters.

Agustin-D commented 7 months ago

I haven't looked too much into it, but just to point you in the right(?) direction, by default the layout being used is "traditionalLayoutMap" you can modify it to add/remove/move keys, or use it as a template to create your own. And you'd need to add any extra characters to "letterList" and modify "keyMapDict" accordingly. I think that should be enough to get a custom layout running.

Da1NOnlyCheezIt commented 6 months ago

in the code you can define a keyboard if it has the same amount of registered keys (46 from ~ to ?) if you define which keys are where there you can compare against that keyboard genome