mirror of
https://github.com/zsa/qmk_firmware.git
synced 2026-01-09 23:22:30 +00:00
Add handling if mousekeys is not enabled
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user