From: tmk Date: Mon, 24 Jan 2011 16:01:13 +0000 (+0900) Subject: fixed mousekey delay to do double/triple click easily. X-Git-Url: https://git.friedersdorff.com/?a=commitdiff_plain;h=5bc29b50ef48196dcd5459287d8d6c91b759c83b;p=max%2Ftmk_keyboard.git fixed mousekey delay to do double/triple click easily. --- diff --git a/mousekey.c b/mousekey.c index f2f0de50..38a8c2e4 100644 --- a/mousekey.c +++ b/mousekey.c @@ -61,7 +61,8 @@ void mousekey_usb_send(void) usb_mouse_print(mousekey_x, mousekey_y, mousekey_v, mousekey_h, mousekey_btn); - _delay_ms(MOUSEKEY_DELAY_TIME >> (mousekey_repeat < 5 ? mousekey_repeat : 4)); + if (mousekey_x || mousekey_y || mousekey_v || mousekey_h) + _delay_ms(MOUSEKEY_DELAY_TIME >> (mousekey_repeat < 5 ? mousekey_repeat : 4)); mousekey_repeat++; } else { mousekey_repeat = 0;