KMKfw / kmk_firmware

Clackety Keyboards Powered by Python
https://kmkfw.zulipchat.com
Other
1.32k stars 458 forks source link

Refactor key meta #995

Closed xs5871 closed 2 days ago

xs5871 commented 3 days ago

As promised in #988:

Coming soon: getting rid of key.meta, aka: "we already use classes for key types, but only sometimes, and we hide it behind a layer of indirection".

All key.meta classes and attributes have been refactored into flat Key classes, plus some cleanup and code simplification. Anecdotal performance improvement: my personal config uses ~2kB less RAM with these changes.