Skip to content

Commit 59b2d43

Browse files
committed
cleanup
1 parent b995b5a commit 59b2d43

4 files changed

Lines changed: 13 additions & 11 deletions

File tree

keyboards/splitkb/kyria/rev3/keymaps/default_hlc/keymap.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][NUM_DIRECTIONS] = {
247247
};
248248
#endif
249249

250-
250+
#if defined (HALCYON_ENABLE)
251251
const uint16_t left_halcyon_buttons[10][5] = {
252252
[_QWERTY] = { KC_MUTE, _______, _______, _______, _______ },
253253
[_DVORAK] = { _______, _______, _______, _______, _______ },
@@ -267,3 +267,4 @@ const uint16_t right_halcyon_buttons[10][5] = {
267267
[_FUNCTION] = { _______, _______, _______, _______, _______ },
268268
[_ADJUST] = { _______, _______, _______, _______, _______ }
269269
};
270+
#endif

keyboards/splitkb/kyria/rev3/keymaps/vial_hlc/keymap.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,12 @@
5353
]
5454
],
5555
"encoders": [
56-
[{"ccw": "KC_VOLD", "cw": "KC_VOLU"}, {"ccw": "KC_VOLD", "cw": "KC_VOLU"}],
57-
[{"ccw": "KC_VOLD", "cw": "KC_VOLU"}, {"ccw": "KC_VOLD", "cw": "KC_VOLU"}],
58-
[{"ccw": "KC_VOLD", "cw": "KC_VOLU"}, {"ccw": "KC_VOLD", "cw": "KC_VOLU"}],
59-
[{"ccw": "KC_VOLD", "cw": "KC_VOLU"}, {"ccw": "KC_VOLD", "cw": "KC_VOLU"}],
60-
[{"ccw": "KC_VOLD", "cw": "KC_VOLU"}, {"ccw": "KC_VOLD", "cw": "KC_VOLU"}],
61-
[{"ccw": "KC_VOLD", "cw": "KC_VOLU"}, {"ccw": "KC_VOLD", "cw": "KC_VOLU"}],
62-
[{"ccw": "KC_VOLD", "cw": "KC_VOLU"}, {"ccw": "KC_VOLD", "cw": "KC_VOLU"}]
56+
[{"ccw": "KC_VOLD", "cw": "KC_VOLU"}, {"ccw": "KC_VOLD", "cw": "KC_VOLU"}, {"ccw": "KC_PGUP", "cw": "KC_PGDN"} ,{"ccw": "KC_PGUP", "cw": "KC_PGDN"}],
57+
[{"ccw": "KC_VOLD", "cw": "KC_VOLU"}, {"ccw": "KC_VOLD", "cw": "KC_VOLU"}, {"ccw": "KC_PGUP", "cw": "KC_PGDN"} ,{"ccw": "KC_PGUP", "cw": "KC_PGDN"}],
58+
[{"ccw": "KC_VOLD", "cw": "KC_VOLU"}, {"ccw": "KC_VOLD", "cw": "KC_VOLU"}, {"ccw": "KC_PGUP", "cw": "KC_PGDN"} ,{"ccw": "KC_PGUP", "cw": "KC_PGDN"}],
59+
[{"ccw": "KC_VOLD", "cw": "KC_VOLU"}, {"ccw": "KC_VOLD", "cw": "KC_VOLU"}, {"ccw": "KC_PGUP", "cw": "KC_PGDN"} ,{"ccw": "KC_PGUP", "cw": "KC_PGDN"}],
60+
[{"ccw": "KC_VOLD", "cw": "KC_VOLU"}, {"ccw": "KC_VOLD", "cw": "KC_VOLU"}, {"ccw": "KC_PGUP", "cw": "KC_PGDN"} ,{"ccw": "KC_PGUP", "cw": "KC_PGDN"}],
61+
[{"ccw": "KC_VOLD", "cw": "KC_VOLU"}, {"ccw": "KC_VOLD", "cw": "KC_VOLU"}, {"ccw": "KC_PGUP", "cw": "KC_PGDN"} ,{"ccw": "KC_PGUP", "cw": "KC_PGDN"}],
62+
[{"ccw": "KC_VOLD", "cw": "KC_VOLU"}, {"ccw": "KC_VOLD", "cw": "KC_VOLU"}, {"ccw": "KC_PGUP", "cw": "KC_PGDN"} ,{"ccw": "KC_PGUP", "cw": "KC_PGDN"}]
6363
]
6464
}

users/halcyon_modules/splitkb/config.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33

44
#pragma once
55

6+
#define HALCYON_ENABLE
7+
68
#define SPLIT_TRANSACTION_IDS_KB MODULE_SYNC
79

810
#define SPLIT_POINTING_ENABLE

users/halcyon_modules/splitkb/halcyon.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,12 +187,11 @@ void matrix_slave_scan_kb(void) {
187187
matrix_slave_scan_user();
188188
}
189189

190+
#ifndef VIAL_ENABLE
190191
__attribute__((weak)) const uint16_t left_halcyon_buttons[10][5];
191192
__attribute__((weak)) const uint16_t right_halcyon_buttons[10][5];
192193

193194
bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
194-
195-
#ifndef VIAL_ENABLE
196195
if (record->event.key.col >= VIRTUAL_COL_START) {
197196
uint8_t btn = record->event.key.col - VIRTUAL_COL_START;
198197

@@ -219,7 +218,7 @@ bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
219218
}
220219
return false;
221220
}
222-
#endif // VIAL_ENABLE
223221

224222
return process_record_user(keycode, record);
225223
}
224+
#endif // VIAL_ENABLE

0 commit comments

Comments
 (0)