diff --git a/quantum/action.c b/quantum/action.c index 41686b5a5e..dadb88e9df 100644 --- a/quantum/action.c +++ b/quantum/action.c @@ -39,6 +39,10 @@ along with this program. If not, see . # include "pointing_device.h" #endif +#if defined(ENCODER_ENABLE) && defined(ENCODER_MAP_ENABLE) && defined(SWAP_HANDS_ENABLE) +# include "encoder.h" +#endif + int tp_buttons; #if defined(RETRO_TAPPING) || defined(RETRO_TAPPING_PER_KEY) || (defined(AUTO_SHIFT_ENABLE) && defined(RETRO_SHIFT))