|
9 年之前 | |
---|---|---|
.. | ||
Makefile | 649b33d778 Renames keyboard folder to keyboards, adds couple of tmk's fixes (#432) | 9 年之前 |
config.h | 649b33d778 Renames keyboard folder to keyboards, adds couple of tmk's fixes (#432) | 9 年之前 |
keymap.c | 649b33d778 Renames keyboard folder to keyboards, adds couple of tmk's fixes (#432) | 9 年之前 |
readme.md | 649b33d778 Renames keyboard folder to keyboards, adds couple of tmk's fixes (#432) | 9 年之前 |
Due to cbbrowne@acm.org Christopher Browne
This was originally based on the default keyboard map, but I have been doing sundry experimentation:
Each layer is given a name to aid in readability, which is then used in the keymap matrix below. The underscores do not denote anything - you can have a layer called STUFF or any other name.
Layer names don't all need to be of the same length, obviously, and you could also skip them entirely and just use numbers, though that means needing to manage the numbers.
It is preferable to keep the symbols short so that a line worth of key mappings fits compactly onto a line of code. It might be an interesting idea to express the maps rotated 90%, so that you only need to fit 4 symbols onto each line, rather than 12.
I used enums to manage layer IDs and macro IDs so that I don't need to care (beyond "start at 0", and arguably that's not needed) about their values.