summaryrefslogtreecommitdiff
path: root/users/drashna/tap_dances.c
diff options
context:
space:
mode:
authorDrashna Jaelre <drashna@live.com>2018-10-15 12:34:49 -0700
committerJack Humbert <jack.humb@gmail.com>2018-10-15 15:34:49 -0400
commit31d12662bde435e6636347ee842108b1cb3d8d48 (patch)
tree05f6191b49aeadea2321966e810f160f4dec5af2 /users/drashna/tap_dances.c
parent44a348d56f661d22144202f440b87c26832a8170 (diff)
Update to drashna keymaps and userspace - RGB edition (#4143)
* Fix up userspace after feature merges * Add new macros for keyboard layouts * Keep new layouts in keymap for easy reference * Cleanup layouts * Fix CRKBD wrappers * Fix up comments * Fix spacing in orthodox base layer * ergodox related cleanup * Make KC_MAKE only flash when holding shift * Add option to fast compile boards * Clean up rgb modes to save space * Re-enable Swap Hands on my Iris
Diffstat (limited to 'users/drashna/tap_dances.c')
-rw-r--r--users/drashna/tap_dances.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/users/drashna/tap_dances.c b/users/drashna/tap_dances.c
index c9e4b1d0ff..3466758530 100644
--- a/users/drashna/tap_dances.c
+++ b/users/drashna/tap_dances.c
@@ -38,16 +38,16 @@ qk_tap_dance_action_t tap_dance_actions[] = {
// Sends the key press to system, but only if on the Diablo layer
void send_diablo_keystroke(uint8_t diablo_key) {
- if (biton32(layer_state) == _DIABLO) {
+ if (IS_LAYER_ON(_DIABLO)) {
switch (diablo_key) {
case 0:
- tap(KC_1); break;
+ tap_code(KC_1); break;
case 1:
- tap(KC_2); break;
+ tap_code(KC_2); break;
case 2:
- tap(KC_3); break;
+ tap_code(KC_3); break;
case 3:
- tap(KC_4); break;
+ tap_code(KC_4); break;
}
}
}