diff options
author | Drashna Jaelre <drashna@live.com> | 2022-09-25 13:04:00 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-25 13:04:00 -0700 |
commit | 5abb125b025750d7015d1a9cafc5a861cedfa9b3 (patch) | |
tree | da18da9141a0efcd3e3ca099742af0da4fa78903 /users/drashna/split/transport_sync.c | |
parent | 34490f098ae1e556ceeaa6a684b3f0deb8b75cfb (diff) |
[Keymap] develop updates for Drashna Keymaps (#18472)
Diffstat (limited to 'users/drashna/split/transport_sync.c')
-rw-r--r-- | users/drashna/split/transport_sync.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/users/drashna/split/transport_sync.c b/users/drashna/split/transport_sync.c index 6b5c384480..11c56849eb 100644 --- a/users/drashna/split/transport_sync.c +++ b/users/drashna/split/transport_sync.c @@ -98,8 +98,8 @@ void user_transport_update(void) { #if defined(OLED_ENABLE) && !defined(SPLIT_OLED_ENABLE) && defined(CUSTOM_OLED_DRIVER) user_state.is_oled_enabled = is_oled_enabled; #endif -#if defined(CUSTOM_POINTING_DEVICE) - user_state.tap_toggling = tap_toggling; +#if defined(POINTING_DEVICE_ENABLE) && defined(POINTING_DEVICE_AUTO_MOUSE_ENABLE) + user_state.tap_toggling = get_auto_mouse_toggle(); #endif #ifdef UNICODE_COMMON_ENABLE user_state.unicode_mode = unicode_config.input_mode; @@ -122,8 +122,10 @@ void user_transport_update(void) { #if defined(OLED_ENABLE) && !defined(SPLIT_OLED_ENABLE) && defined(CUSTOM_OLED_DRIVER) is_oled_enabled = user_state.is_oled_enabled; #endif -#if defined(CUSTOM_POINTING_DEVICE) - tap_toggling = user_state.tap_toggling; +#if defined(POINTING_DEVICE_ENABLE) && defined(POINTING_DEVICE_AUTO_MOUSE_ENABLE) + if (get_auto_mouse_toggle() != user_state.tap_toggling) { + auto_mouse_toggle(); + } #endif #ifdef SWAP_HANDS_ENABLE swap_hands = user_state.swap_hands; |