1
0
Fork 0

[Docs] Change defines to enums in examples (#19793)

This commit is contained in:
Pablo Martínez 2023-02-10 11:39:35 +01:00 committed by GitHub
parent 50cd320616
commit 95671148a4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 15 additions and 9 deletions

View file

@ -143,9 +143,11 @@ QMK键映射定义在C源文件中其数据结构上是一个容纳了数组
// and just use numbers.
// 译:每一层为了便于识别可以起一个名字,下划线没有实际意义 - 叫STUFF之类的也行的
// 译:层名不需要都一样长,甚至不定义这些直接用层号也是可以的
#define _BL 0
#define _FL 1
#define _CL 2
enum layer_names {
_BL,
_FL,
_CL,
};
以上是一些便于编写键映射及自定义函数时可用的预定义,`GRAVE_MODS` 后续会用在自定义函数中,之后的 `_BL`, `_FL``_CL` 便于我们在代码中引用这些层。