[Keymap] Initial commit for keyboardio/atreus/dshields keymap. (#11946)
Incorporating changes suggested during pull request review. Co-authored-by: Daniel Shields <dshields@cboe.com>
This commit is contained in:
@ -2,6 +2,11 @@
|
||||
#include "dshields.h"
|
||||
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
if ((keycode >= QK_MOD_TAP && keycode <= QK_MOD_TAP_MAX)
|
||||
|| (keycode >= QK_LAYER_TAP && keycode <= QK_LAYER_TAP_MAX)
|
||||
|| (keycode >= QK_MODS && keycode <= QK_MODS_MAX)) {
|
||||
keycode = keycode & 0xFF;
|
||||
}
|
||||
if (keycode == KC_ESC && record->event.pressed) {
|
||||
bool rc = true;
|
||||
uint8_t mods = 0;
|
||||
|
@ -15,6 +15,8 @@
|
||||
|
||||
// mod-tap keys
|
||||
#define MT_SPC SFT_T(KC_SPC)
|
||||
#define MT_BSPC SFT_T(KC_BSPC)
|
||||
#define MT_ESC LGUI_T(KC_ESC)
|
||||
|
||||
// LED/RGB controls
|
||||
#ifdef KEYBOARD_planck_light
|
||||
|
Reference in New Issue
Block a user