diff options
author | Drashna Jael're <drashna@live.com> | 2021-07-29 11:50:36 -0700 |
---|---|---|
committer | Drashna Jael're <drashna@live.com> | 2021-12-07 10:13:22 -0800 |
commit | 854673e28bc0fbced9532da252c6ed2f0528b9d9 (patch) | |
tree | cbae56d967b0e3b89cff9606cb88505607e0bd59 | |
parent | c2cfa20e363b3a69ee07fbf047a94eb98746c9a3 (diff) |
Add handling if mousekeys is not enabled
-rw-r--r-- | keyboards/moonlander/cirque_tm040040.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/keyboards/moonlander/cirque_tm040040.c b/keyboards/moonlander/cirque_tm040040.c index a5abb3380d..a639ce3c33 100644 --- a/keyboards/moonlander/cirque_tm040040.c +++ b/keyboards/moonlander/cirque_tm040040.c @@ -60,7 +60,16 @@ void pointing_device_task(void) { is_z_down = (bool)touchData.zValue; if (!touchData.zValue) { if (timer_elapsed(mouse_timer) < TAPPING_CHECK && mouse_timer != 0) { +#if defined(MOUSEKEY_ENABLE) tap_code(KC_BTN1); +#else + mouse_report.buttons |= MOUSE_BTN1; + pointing_device_set_report(mouse_report); + pointing_device_send(); + mouse_report.buttons &= ~MOUSE_BTN1; + pointing_device_set_report(mouse_report); + pointing_device_send(); +#endif } } mouse_timer = timer_read(); |