diff options
Diffstat (limited to 'keyboards/massdrop/alt/keymaps/default/keymap.c')
| -rw-r--r-- | keyboards/massdrop/alt/keymaps/default/keymap.c | 35 |
1 files changed, 8 insertions, 27 deletions
diff --git a/keyboards/massdrop/alt/keymaps/default/keymap.c b/keyboards/massdrop/alt/keymaps/default/keymap.c index 0cbce8629..a5c443ffc 100644 --- a/keyboards/massdrop/alt/keymaps/default/keymap.c +++ b/keyboards/massdrop/alt/keymaps/default/keymap.c | |||
| @@ -136,8 +136,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { | |||
| 136 | case L_T_BR: | 136 | case L_T_BR: |
| 137 | if (record->event.pressed) { | 137 | if (record->event.pressed) { |
| 138 | led_animation_breathing = !led_animation_breathing; | 138 | led_animation_breathing = !led_animation_breathing; |
| 139 | if (led_animation_breathing) | 139 | if (led_animation_breathing) { |
| 140 | { | ||
| 141 | gcr_breathe = gcr_desired; | 140 | gcr_breathe = gcr_desired; |
| 142 | led_animation_breathe_cur = BREATHE_MIN_STEP; | 141 | led_animation_breathe_cur = BREATHE_MIN_STEP; |
| 143 | breathe_dir = 1; | 142 | breathe_dir = 1; |
| @@ -151,50 +150,32 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { | |||
| 151 | return false; | 150 | return false; |
| 152 | case U_T_AUTO: | 151 | case U_T_AUTO: |
| 153 | if (record->event.pressed && MODS_SHIFT && MODS_CTRL) { | 152 | if (record->event.pressed && MODS_SHIFT && MODS_CTRL) { |
| 154 | usb_extra_manual = !usb_extra_manual; | 153 | TOGGLE_FLAG_AND_PRINT(usb_extra_manual, "USB extra port manual mode"); |
| 155 | CDC_print("USB extra port manual mode "); | ||
| 156 | CDC_print(usb_extra_manual ? "enabled" : "disabled"); | ||
| 157 | CDC_print("\r\n"); | ||
| 158 | } | 154 | } |
| 159 | return false; | 155 | return false; |
| 160 | case U_T_AGCR: | 156 | case U_T_AGCR: |
| 161 | if (record->event.pressed && MODS_SHIFT && MODS_CTRL) { | 157 | if (record->event.pressed && MODS_SHIFT && MODS_CTRL) { |
| 162 | usb_gcr_auto = !usb_gcr_auto; | 158 | TOGGLE_FLAG_AND_PRINT(usb_gcr_auto, "USB GCR auto mode"); |
| 163 | CDC_print("USB GCR auto mode "); | ||
| 164 | CDC_print(usb_gcr_auto ? "enabled" : "disabled"); | ||
| 165 | CDC_print("\r\n"); | ||
| 166 | } | 159 | } |
| 167 | return false; | 160 | return false; |
| 168 | case DBG_TOG: | 161 | case DBG_TOG: |
| 169 | if (record->event.pressed) { | 162 | if (record->event.pressed) { |
| 170 | debug_enable = !debug_enable; | 163 | TOGGLE_FLAG_AND_PRINT(debug_enable, "Debug mode"); |
| 171 | CDC_print("Debug mode "); | ||
| 172 | CDC_print(debug_enable ? "enabled" : "disabled"); | ||
| 173 | CDC_print("\r\n"); | ||
| 174 | } | 164 | } |
| 175 | return false; | 165 | return false; |
| 176 | case DBG_MTRX: | 166 | case DBG_MTRX: |
| 177 | if (record->event.pressed) { | 167 | if (record->event.pressed) { |
| 178 | debug_matrix = !debug_matrix; | 168 | TOGGLE_FLAG_AND_PRINT(debug_matrix, "Debug matrix"); |
| 179 | CDC_print("Debug matrix "); | ||
| 180 | CDC_print(debug_matrix ? "enabled" : "disabled"); | ||
| 181 | CDC_print("\r\n"); | ||
| 182 | } | 169 | } |
| 183 | return false; | 170 | return false; |
| 184 | case DBG_KBD: | 171 | case DBG_KBD: |
| 185 | if (record->event.pressed) { | 172 | if (record->event.pressed) { |
| 186 | debug_keyboard = !debug_keyboard; | 173 | TOGGLE_FLAG_AND_PRINT(debug_keyboard, "Debug keyboard"); |
| 187 | CDC_print("Debug keyboard "); | ||
| 188 | CDC_print(debug_keyboard ? "enabled" : "disabled"); | ||
| 189 | CDC_print("\r\n"); | ||
| 190 | } | 174 | } |
| 191 | return false; | 175 | return false; |
| 192 | case DBG_MOU: | 176 | case DBG_MOU: |
| 193 | if (record->event.pressed) { | 177 | if (record->event.pressed) { |
| 194 | debug_mouse = !debug_mouse; | 178 | TOGGLE_FLAG_AND_PRINT(debug_mouse, "Debug mouse"); |
| 195 | CDC_print("Debug mouse "); | ||
| 196 | CDC_print(debug_mouse ? "enabled" : "disabled"); | ||
| 197 | CDC_print("\r\n"); | ||
| 198 | } | 179 | } |
| 199 | return false; | 180 | return false; |
| 200 | case MD_BOOT: | 181 | case MD_BOOT: |
| @@ -209,4 +190,4 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { | |||
| 209 | default: | 190 | default: |
| 210 | return true; //Process all other keycodes normally | 191 | return true; //Process all other keycodes normally |
| 211 | } | 192 | } |
| 212 | } \ No newline at end of file | 193 | } |
