forked from mirrors/qmk_userspace
		
	fixed mousekey delay to do double/triple click easily.
This commit is contained in:
		
					parent
					
						
							
								23c686ad46
							
						
					
				
			
			
				commit
				
					
						5bc29b50ef
					
				
			
		
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -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;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue