aboutsummaryrefslogtreecommitdiffstats
path: root/common_features.mk
diff options
context:
space:
mode:
Diffstat (limited to 'common_features.mk')
-rw-r--r--common_features.mk7
1 files changed, 7 insertions, 0 deletions
diff --git a/common_features.mk b/common_features.mk
index 8443a759b..f9fca4669 100644
--- a/common_features.mk
+++ b/common_features.mk
@@ -529,3 +529,10 @@ ifeq ($(strip $(AUTO_SHIFT_ENABLE)), yes)
OPT_DEFS += -DAUTO_SHIFT_MODIFIERS
endif
endif
+
+ifeq ($(strip $(JOYSTICK_ENABLE)), yes)
+ OPT_DEFS += -DJOYSTICK_ENABLE
+ SRC += $(QUANTUM_DIR)/process_keycode/process_joystick.c
+ SRC += $(QUANTUM_DIR)/joystick.c
+ SRC += analog.c
+endif