From c18ca93449756fc8b9656aae41c8bd6c715b04be Mon Sep 17 00:00:00 2001 From: Thomas Kriechbaumer Date: Sun, 26 Jun 2022 10:11:02 +0200 Subject: [PATCH] [Split] Ensure SPLIT_POINTING_ENABLE is defined if using POINTING_DEVICE_* --- quantum/pointing_device.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/quantum/pointing_device.c b/quantum/pointing_device.c index 3c2e2bc09dd0..3aa494168774 100644 --- a/quantum/pointing_device.c +++ b/quantum/pointing_device.c @@ -25,6 +25,13 @@ #if (defined(POINTING_DEVICE_ROTATION_90) + defined(POINTING_DEVICE_ROTATION_180) + defined(POINTING_DEVICE_ROTATION_270)) > 1 # error More than one rotation selected. This is not supported. #endif + +#if defined(POINTING_DEVICE_LEFT) || defined(POINTING_DEVICE_RIGHT) || defined(POINTING_DEVICE_COMBINED) +# ifndef SPLIT_POINTING_ENABLE +# error "Using POINTING_DEVICE_LEFT or POINTING_DEVICE_RIGHT or POINTING_DEVICE_COMBINED, then SPLIT_POINTING_ENABLE is required but has not been defined" +# endif +#endif + #if defined(SPLIT_POINTING_ENABLE) # include "transactions.h" # include "keyboard.h"