mirror of
https://github.com/openstenoproject/qmk
synced 2024-11-10 18:49:08 +00:00
layer defines to enum
This commit is contained in:
parent
841d7e6a1d
commit
938422ce99
2 changed files with 19 additions and 13 deletions
|
@ -14,13 +14,16 @@ extern keymap_config_t keymap_config;
|
||||||
// The underscores don't mean anything - you can have a layer called STUFF or any other name.
|
// The underscores don't mean 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 can also skip them
|
// Layer names don't all need to be of the same length, obviously, and you can also skip them
|
||||||
// entirely and just use numbers.
|
// entirely and just use numbers.
|
||||||
#define _QWERTY 0
|
|
||||||
#define _COLEMAK 1
|
enum planck_layers {
|
||||||
#define _DVORAK 2
|
_QWERTY,
|
||||||
#define _LOWER 3
|
_COLEMAK,
|
||||||
#define _RAISE 4
|
_DVORAK,
|
||||||
#define _PLOVER 5
|
_LOWER,
|
||||||
#define _ADJUST 16
|
_RAISE,
|
||||||
|
_PLOVER,
|
||||||
|
_ADJUST
|
||||||
|
};
|
||||||
|
|
||||||
enum planck_keycodes {
|
enum planck_keycodes {
|
||||||
QWERTY = SAFE_RANGE,
|
QWERTY = SAFE_RANGE,
|
||||||
|
|
|
@ -9,12 +9,15 @@
|
||||||
// The underscores don't mean anything - you can have a layer called STUFF or any other name.
|
// The underscores don't mean 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 can also skip them
|
// Layer names don't all need to be of the same length, obviously, and you can also skip them
|
||||||
// entirely and just use numbers.
|
// entirely and just use numbers.
|
||||||
#define _QWERTY 0
|
|
||||||
#define _COLEMAK 1
|
enum preonic_layers {
|
||||||
#define _DVORAK 2
|
_QWERTY,
|
||||||
#define _LOWER 3
|
_COLEMAK,
|
||||||
#define _RAISE 4
|
_DVORAK,
|
||||||
#define _ADJUST 16
|
_LOWER,
|
||||||
|
_RAISE,
|
||||||
|
_ADJUST
|
||||||
|
};
|
||||||
|
|
||||||
enum preonic_keycodes {
|
enum preonic_keycodes {
|
||||||
QWERTY = SAFE_RANGE,
|
QWERTY = SAFE_RANGE,
|
||||||
|
|
Loading…
Reference in a new issue