Fix Mouse Shared EP functionality (#14136)
Specifically, if you enable the shared endpoint for mouse reports (or keyboard, which force enables it for mouse), and you don't have mousekeys enabled, it does not properly enable shared mouse EP for pointing device (which uses mouse reports). This cause it to error out in compiling. This fixes up some of the logic to ensure that all use cases are supported, and consolidates some of the code.
This commit is contained in:
		
							parent
							
								
									d57d9aec4f
								
							
						
					
					
						commit
						6fd20acf4b
					
				
					 2 changed files with 4 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -117,13 +117,13 @@ endif
 | 
			
		|||
 | 
			
		||||
ifeq ($(strip $(MOUSEKEY_ENABLE)), yes)
 | 
			
		||||
    OPT_DEFS += -DMOUSEKEY_ENABLE
 | 
			
		||||
    OPT_DEFS += -DMOUSE_ENABLE
 | 
			
		||||
    MOUSE_ENABLE := yes
 | 
			
		||||
    SRC += $(QUANTUM_DIR)/mousekey.c
 | 
			
		||||
endif
 | 
			
		||||
 | 
			
		||||
ifeq ($(strip $(POINTING_DEVICE_ENABLE)), yes)
 | 
			
		||||
    OPT_DEFS += -DPOINTING_DEVICE_ENABLE
 | 
			
		||||
    OPT_DEFS += -DMOUSE_ENABLE
 | 
			
		||||
    MOUSE_ENABLE := yes
 | 
			
		||||
    SRC += $(QUANTUM_DIR)/pointing_device.c
 | 
			
		||||
endif
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue