diff options
author | Jack Humbert <jack.humb@gmail.com> | 2017-01-25 16:02:01 +0100 |
---|---|---|
committer | Jack Humbert <jack.humb@gmail.com> | 2017-01-25 16:02:01 +0100 |
commit | 938422ce9901b7e15c738d6abaa78e0076ebdc84 (patch) | |
tree | 694168c673a678bb4baf7b47460ee3bbb189c39c /keyboards/preonic/keymaps | |
parent | 841d7e6a1d74b1fc45575ed551132ec27353ebf3 (diff) | |
download | qmk_firmware-938422ce9901b7e15c738d6abaa78e0076ebdc84.tar.gz qmk_firmware-938422ce9901b7e15c738d6abaa78e0076ebdc84.tar.xz |
layer defines to enum
Diffstat (limited to 'keyboards/preonic/keymaps')
-rw-r--r-- | keyboards/preonic/keymaps/default/keymap.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/keyboards/preonic/keymaps/default/keymap.c b/keyboards/preonic/keymaps/default/keymap.c index 78b4997a8..3313af945 100644 --- a/keyboards/preonic/keymaps/default/keymap.c +++ b/keyboards/preonic/keymaps/default/keymap.c @@ -9,12 +9,15 @@ // 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 // entirely and just use numbers. -#define _QWERTY 0 -#define _COLEMAK 1 -#define _DVORAK 2 -#define _LOWER 3 -#define _RAISE 4 -#define _ADJUST 16 + +enum preonic_layers { + _QWERTY, + _COLEMAK, + _DVORAK, + _LOWER, + _RAISE, + _ADJUST +}; enum preonic_keycodes { QWERTY = SAFE_RANGE, |