diff options
| author | jonavin <71780717+Jonavin@users.noreply.github.com> | 2021-10-30 14:53:58 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-30 11:53:58 -0700 |
| commit | 5334e087ef848d54266537ecdc0b87cac976517e (patch) | |
| tree | aec3b37a7ea9f50e092c5d24f3fc449b0d8cb52e /users/jonavin/rules.mk | |
| parent | 28120c1a63bbc64649765d9214b14e63709933aa (diff) | |
[Keymap] Jonavin userspace encoder alt tab scrolling (#14979)
Co-authored-by: Jonavin <=>
Diffstat (limited to 'users/jonavin/rules.mk')
| -rw-r--r-- | users/jonavin/rules.mk | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/users/jonavin/rules.mk b/users/jonavin/rules.mk index 6460021247..4f65db27b9 100644 --- a/users/jonavin/rules.mk +++ b/users/jonavin/rules.mk @@ -1,6 +1,13 @@ SRC += jonavin.c -ifeq ($(strip $(ENCODER_DEFAULTACTIONS_ENABLE)), yes) - OPT_DEFS += -DENCODER_DEFAULTACTIONS_ENABLE +ifdef ENCODER_ENABLE + # include encoder related code when enabled + ifeq ($(strip $(ENCODER_DEFAULTACTIONS_ENABLE)), yes) + OPT_DEFS += -DENCODER_DEFAULTACTIONS_ENABLE + endif + ifeq ($(strip $(ALTTAB_SCROLL_ENABLE)), yes) + OPT_DEFS += -DALTTAB_SCROLL_ENABLE + endif + SRC += jonavin_encoder.c endif ifeq ($(strip $(TD_LSFT_CAPSLOCK_ENABLE)), yes) OPT_DEFS += -DTD_LSFT_CAPSLOCK_ENABLE |
