Enabling Pointing Device support in register code functions (#18363)
This commit is contained in:
		
							parent
							
								
									d909038b28
								
							
						
					
					
						commit
						fb400f2ac2
					
				
					 8 changed files with 17 additions and 57 deletions
				
			
		| 
						 | 
				
			
			@ -918,6 +918,10 @@ __attribute__((weak)) void register_code(uint8_t code) {
 | 
			
		|||
        mousekey_on(code);
 | 
			
		||||
        mousekey_send();
 | 
			
		||||
    }
 | 
			
		||||
#elif defined(POINTING_DEVICE_ENABLE)
 | 
			
		||||
    else if IS_MOUSEKEY (code) {
 | 
			
		||||
        pointing_device_keycode_handler(code, true);
 | 
			
		||||
    }
 | 
			
		||||
#endif
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -978,6 +982,10 @@ __attribute__((weak)) void unregister_code(uint8_t code) {
 | 
			
		|||
        mousekey_off(code);
 | 
			
		||||
        mousekey_send();
 | 
			
		||||
    }
 | 
			
		||||
#elif defined(POINTING_DEVICE_ENABLE)
 | 
			
		||||
    else if IS_MOUSEKEY (code) {
 | 
			
		||||
        pointing_device_keycode_handler(code, false);
 | 
			
		||||
    }
 | 
			
		||||
#endif
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue