summaryrefslogtreecommitdiff
path: root/keyboards/maple_computing
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/maple_computing')
-rw-r--r--keyboards/maple_computing/minidox/keymaps/default/keymap.c17
-rw-r--r--keyboards/maple_computing/the_ruler/keymaps/default/keymap.c18
2 files changed, 1 insertions, 34 deletions
diff --git a/keyboards/maple_computing/minidox/keymaps/default/keymap.c b/keyboards/maple_computing/minidox/keymaps/default/keymap.c
index d71e5b6e55..39ebffd987 100644
--- a/keyboards/maple_computing/minidox/keymaps/default/keymap.c
+++ b/keyboards/maple_computing/minidox/keymaps/default/keymap.c
@@ -13,8 +13,7 @@ enum layer_names {
13}; 13};
14 14
15enum custom_keycodes { 15enum custom_keycodes {
16 QWERTY = SAFE_RANGE, 16 LOWER = SAFE_RANGE,
17 LOWER,
18 RAISE, 17 RAISE,
19 ADJUST, 18 ADJUST,
20}; 19};
@@ -114,22 +113,8 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
114) 113)
115}; 114};
116 115
117void persistant_default_layer_set(uint16_t default_layer) {
118 eeconfig_update_default_layer(default_layer);
119 default_layer_set(default_layer);
120}
121
122bool process_record_user(uint16_t keycode, keyrecord_t *record) { 116bool process_record_user(uint16_t keycode, keyrecord_t *record) {
123 switch (keycode) { 117 switch (keycode) {
124 case QWERTY:
125 if (record->event.pressed) {
126 #ifdef AUDIO_ENABLE
127 PLAY_SONG(tone_qwerty);
128 #endif
129 persistant_default_layer_set(1UL<<_QWERTY);
130 }
131 return false;
132 break;
133 case LOWER: 118 case LOWER:
134 if (record->event.pressed) { 119 if (record->event.pressed) {
135 layer_on(_LOWER); 120 layer_on(_LOWER);
diff --git a/keyboards/maple_computing/the_ruler/keymaps/default/keymap.c b/keyboards/maple_computing/the_ruler/keymaps/default/keymap.c
index 87190f0b3f..6ef57fd895 100644
--- a/keyboards/maple_computing/the_ruler/keymaps/default/keymap.c
+++ b/keyboards/maple_computing/the_ruler/keymaps/default/keymap.c
@@ -9,12 +9,6 @@
9#define _FN_1 1 9#define _FN_1 1
10#define _FN_2 2 10#define _FN_2 2
11 11
12enum custom_keycodes {
13 DEFAULT = SAFE_RANGE,
14 FN_1,
15 FN_2
16};
17
18// Defines for task manager and such 12// Defines for task manager and such
19#define CALTDEL LCTL(LALT(KC_DEL)) 13#define CALTDEL LCTL(LALT(KC_DEL))
20#define TSKMGR LCTL(LSFT(KC_ESC)) 14#define TSKMGR LCTL(LSFT(KC_ESC))
@@ -49,15 +43,3 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
49) 43)
50 44
51}; 45};
52
53void persistant_default_layer_set(uint16_t default_layer) {
54 eeconfig_update_default_layer(default_layer);
55 default_layer_set(default_layer);
56}
57
58bool process_record_user(uint16_t keycode, keyrecord_t *record) {
59 switch (keycode) {
60 // NONE
61 }
62 return true;
63}