summaryrefslogtreecommitdiff
path: root/users/jonavin/jonavin.c
diff options
context:
space:
mode:
authorNick Brassel <nick@tzarc.org>2023-02-28 11:22:29 +1100
committerNick Brassel <nick@tzarc.org>2023-02-28 11:22:29 +1100
commitbacec14073b2e897d5a52caf12de5a6a1f7b4078 (patch)
treed4e3e57aac1a829a191831efd2e62c8a43217885 /users/jonavin/jonavin.c
parentd70e9b8659a7fbbd7069fd542bd07e67e04327a1 (diff)
parentb865b9e1706ad28ae4882bd2e0331e98808295fa (diff)
Merge remote-tracking branch 'upstream/develop'
Diffstat (limited to 'users/jonavin/jonavin.c')
-rw-r--r--users/jonavin/jonavin.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/users/jonavin/jonavin.c b/users/jonavin/jonavin.c
index f203bd77df..c936421040 100644
--- a/users/jonavin/jonavin.c
+++ b/users/jonavin/jonavin.c
@@ -22,7 +22,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifdef TD_LSFT_CAPSLOCK_ENABLE
// Tap once for shift, twice for Caps Lock but only if Win Key in not disabled
- void dance_LSFT_finished(qk_tap_dance_state_t *state, void *user_data) {
+ void dance_LSFT_finished(tap_dance_state_t *state, void *user_data) {
if (state->count == 1 || keymap_config.no_gui) {
register_code16(KC_LSFT);
} else {
@@ -30,7 +30,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
}
}
- void dance_LSFT_reset(qk_tap_dance_state_t *state, void *user_data) {
+ void dance_LSFT_reset(tap_dance_state_t *state, void *user_data) {
if (state->count == 1 || keymap_config.no_gui) {
unregister_code16(KC_LSFT);
} else {
@@ -38,7 +38,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
}
}
- qk_tap_dance_action_t tap_dance_actions[] = {
+ tap_dance_action_t tap_dance_actions[] = {
// Tap once for shift, twice for Caps Lock
[TD_LSFT_CAPSLOCK] = ACTION_TAP_DANCE_DOUBLE(KC_LSFT, KC_CAPS),
[TD_LSFT_CAPS_WIN] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, dance_LSFT_finished, dance_LSFT_reset),
@@ -212,7 +212,7 @@ uint16_t get_tapping_term(uint16_t keycode, keyrecord_t *record) {
// Turn on/off NUM LOCK if current state is different
void activate_numlock(bool turn_on) {
- if (IS_HOST_LED_ON(USB_LED_NUM_LOCK) != turn_on) {
+ if (host_keyboard_led_state().num_lock != turn_on) {
tap_code(KC_NUM_LOCK);
}
}