KMKfw / kmk_firmware

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

Refactor key meta #995

Closed xs5871 closed 4 months ago

xs5871 commented 5 months 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.