Explorar el Código

fixed mousekey delay to do double/triple click easily.

tags/v1.9
tmk hace 13 años
padre
commit
5bc29b50ef
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2
    1
      mousekey.c

+ 2
- 1
mousekey.c Ver fichero

@@ -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;

Cargando…
Cancelar
Guardar