summaryrefslogtreecommitdiff
path: root/keyboards/fortitude60/keymaps
diff options
context:
space:
mode:
authorJoel Challis <git@zvecr.com>2020-03-06 01:39:54 +0000
committerGitHub <noreply@github.com>2020-03-06 01:39:54 +0000
commitb368db9e027015ba393e87cee416d8d5b2b56a8c (patch)
tree413707612cca0b75339c9d2a7962e6b5b3bf4046 /keyboards/fortitude60/keymaps
parent76189d9a282cc32bf2ff88a84a6374ebb8908433 (diff)
downloadqmk_firmware-b368db9e027015ba393e87cee416d8d5b2b56a8c.tar.gz
qmk_firmware-b368db9e027015ba393e87cee416d8d5b2b56a8c.zip
Refactor fortitude60 to use split_common (#8113)
Diffstat (limited to 'keyboards/fortitude60/keymaps')
-rw-r--r--keyboards/fortitude60/keymaps/default/keymap.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/keyboards/fortitude60/keymaps/default/keymap.c b/keyboards/fortitude60/keymaps/default/keymap.c
index c476fed854..8db5de904a 100644
--- a/keyboards/fortitude60/keymaps/default/keymap.c
+++ b/keyboards/fortitude60/keymaps/default/keymap.c
@@ -5,12 +5,14 @@
// 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 my_layers {
+ _QWERTY,
+ _COLEMAK,
+ _DVORAK,
+ _LOWER,
+ _RAISE,
+ _ADJUST
+};
enum custom_keycodes {
QWERTY = SAFE_RANGE,
@@ -166,19 +168,16 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
set_single_persistent_default_layer(_QWERTY);
}
return false;
- break;
case COLEMAK:
if (record->event.pressed) {
set_single_persistent_default_layer(_COLEMAK);
}
return false;
- break;
case DVORAK:
if (record->event.pressed) {
set_single_persistent_default_layer(_DVORAK);
}
return false;
- break;
}
return true;
}