aboutsummaryrefslogtreecommitdiff
path: root/common_features.mk
diff options
context:
space:
mode:
authorDrashna Jaelre <drashna@live.com>2021-08-23 18:40:24 -0700
committerGitHub <noreply@github.com>2021-08-24 11:40:24 +1000
commit6fd20acf4be76e7a2bd82d3dfd0a9bcca8c507eb (patch)
tree8ce8291e910bce462c9b82fac312a9ed439f2be5 /common_features.mk
parentd57d9aec4f1e00601e6664ef6c4cb0e3e7826fe2 (diff)
downloadqmk_firmware-6fd20acf4be76e7a2bd82d3dfd0a9bcca8c507eb.tar.gz
qmk_firmware-6fd20acf4be76e7a2bd82d3dfd0a9bcca8c507eb.zip
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.
Diffstat (limited to 'common_features.mk')
-rw-r--r--common_features.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/common_features.mk b/common_features.mk
index 09217c469..3acc5307a 100644
--- a/common_features.mk
+++ b/common_features.mk
@@ -117,13 +117,13 @@ endif
117 117
118ifeq ($(strip $(MOUSEKEY_ENABLE)), yes) 118ifeq ($(strip $(MOUSEKEY_ENABLE)), yes)
119 OPT_DEFS += -DMOUSEKEY_ENABLE 119 OPT_DEFS += -DMOUSEKEY_ENABLE
120 OPT_DEFS += -DMOUSE_ENABLE 120 MOUSE_ENABLE := yes
121 SRC += $(QUANTUM_DIR)/mousekey.c 121 SRC += $(QUANTUM_DIR)/mousekey.c
122endif 122endif
123 123
124ifeq ($(strip $(POINTING_DEVICE_ENABLE)), yes) 124ifeq ($(strip $(POINTING_DEVICE_ENABLE)), yes)
125 OPT_DEFS += -DPOINTING_DEVICE_ENABLE 125 OPT_DEFS += -DPOINTING_DEVICE_ENABLE
126 OPT_DEFS += -DMOUSE_ENABLE 126 MOUSE_ENABLE := yes
127 SRC += $(QUANTUM_DIR)/pointing_device.c 127 SRC += $(QUANTUM_DIR)/pointing_device.c
128endif 128endif
129 129