diff options
author | Joel Challis <[email protected]> | 2024-02-16 14:14:46 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2024-02-17 01:14:46 +1100 |
commit | 77e88674986ee14bd1799b1ab19b4c94af083bac (patch) | |
tree | 4e96ad9c0fd9cdefbe36e0b0045b6ba9896946e1 /builddefs | |
parent | 13434fc066ef0b213587f773cc05f1c5b7d31113 (diff) | |
download | qmk_firmware-77e88674986ee14bd1799b1ab19b4c94af083bac.tar.gz qmk_firmware-77e88674986ee14bd1799b1ab19b4c94af083bac.zip |
Fix joystick initialization (#22953)
Diffstat (limited to 'builddefs')
-rw-r--r-- | builddefs/common_features.mk | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/builddefs/common_features.mk b/builddefs/common_features.mk index 513a3678a9..dab4ea083a 100644 --- a/builddefs/common_features.mk +++ b/builddefs/common_features.mk @@ -815,15 +815,12 @@ ifeq ($(strip $(JOYSTICK_ENABLE)), yes) $(call CATASTROPHIC_ERROR,Invalid JOYSTICK_DRIVER,JOYSTICK_DRIVER="$(JOYSTICK_DRIVER)" is not a valid joystick driver) endif OPT_DEFS += -DJOYSTICK_ENABLE + OPT_DEFS += -DJOYSTICK_$(strip $(shell echo $(JOYSTICK_DRIVER) | tr '[:lower:]' '[:upper:]')) SRC += $(QUANTUM_DIR)/process_keycode/process_joystick.c SRC += $(QUANTUM_DIR)/joystick.c ifeq ($(strip $(JOYSTICK_DRIVER)), analog) ANALOG_DRIVER_REQUIRED = yes - OPT_DEFS += -DANALOG_JOYSTICK_ENABLE - endif - ifeq ($(strip $(JOYSTICK_DRIVER)), digital) - OPT_DEFS += -DDIGITAL_JOYSTICK_ENABLE endif endif |