diff options
author | tmk <nobody@nowhere> | 2011-01-25 01:01:13 +0900 |
---|---|---|
committer | tmk <nobody@nowhere> | 2011-01-25 01:01:13 +0900 |
commit | 5bc29b50ef48196dcd5459287d8d6c91b759c83b (patch) | |
tree | 6a6ee4c6f191144b2f8c4ce2e00813a5c9d5f7f0 /mousekey.c | |
parent | 23c686ad46d325d054b83734cc8e89c4fb5e2572 (diff) |
fixed mousekey delay to do double/triple click easily.
Diffstat (limited to 'mousekey.c')
-rw-r--r-- | mousekey.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mousekey.c b/mousekey.c index f2f0de5064..38a8c2e474 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; |