1
0
Fork 0

VIA Protocol 12 + fixes (#19916)

Co-authored-by: Wilba <wilba@wilba.tech>
Co-authored-by: zvecr <git@zvecr.com>
This commit is contained in:
Nick Brassel 2023-02-23 09:19:00 +11:00 committed by GitHub
parent 403b0addea
commit 7f805cc779
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
135 changed files with 761 additions and 572 deletions

View file

@ -22,13 +22,13 @@ enum tap_dances {
ENC_TAP,
};
#define LOWER FN_MO13
#define RAISE FN_MO23
#define LOWER TL_LOWR
#define RAISE TL_UPPR
// clang-format off
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[_QWERTY] = LAYOUT(
KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC, USER09,
KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC, QK_KB_9,
KC_TAB, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT,
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT,
MO(3), KC_LCTL, KC_LALT, KC_LGUI, LOWER, KC_SPC, KC_SPC, RAISE, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT
@ -99,10 +99,10 @@ typedef union {
work_louder_config_t work_louder_config;
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
if (keycode == USER09) {
if (keycode == QK_KB_9) {
preprocess_tap_dance(TD(ENC_TAP), record);
return process_tap_dance(TD(ENC_TAP), record);
} else if (keycode == USER10 && record->event.pressed) {
} else if (keycode == QK_KB_10 && record->event.pressed) {
work_louder_config.led_level ^= true;
eeconfig_update_user(work_louder_config.raw);
layer_state_set_kb(layer_state);