gedankenexperimenter / Kaleidoscope

Firmware for the Keyboardio Model 01 and other keyboards with AVR or ARM MCUs.
http://keyboard.io
GNU General Public License v3.0
0 stars 1 forks source link

Rewrite of `Key` structure #12

Closed gedankenexperimenter closed 6 years ago

gedankenexperimenter commented 6 years ago

Rewrite of the Key structure as a class instead of a union. This introduces a new set of classes, one for each of the core Key types:

I'm ambivalent about the names, but I still feel it's the least bad option.

gedankenexperimenter commented 6 years ago

After some optimizing, this branch is now smaller than the version with the Key union by 138 bytes.