summaryrefslogtreecommitdiffstats
path: root/quantum/haptic.c
diff options
context:
space:
mode:
authorDrashna Jaelre <drashna@live.com>2022-12-31 16:56:32 -0800
committerGitHub <noreply@github.com>2023-01-01 11:56:32 +1100
commitb585ece5ef9309557ac6b61eadda4f00e4e52b0c (patch)
tree1d66751c0fc8a0a2e495669d6003688f8160c2e6 /quantum/haptic.c
parentac561b9473559b7880bcf2510ae5a0ac5cabde7a (diff)
Add Split support for Haptic feedback (#19203)
Diffstat (limited to 'quantum/haptic.c')
-rw-r--r--quantum/haptic.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/quantum/haptic.c b/quantum/haptic.c
index ad64fe2cc7..c151547fca 100644
--- a/quantum/haptic.c
+++ b/quantum/haptic.c
@@ -25,6 +25,9 @@
#ifdef SOLENOID_ENABLE
# include "solenoid.h"
#endif
+#if defined(SPLIT_KEYBOARD) && defined(SPLIT_HAPTIC_ENABLE)
+extern uint8_t split_haptic_play;
+#endif
haptic_config_t haptic_config;
@@ -319,9 +322,15 @@ void haptic_play(void) {
uint8_t play_eff = 0;
play_eff = haptic_config.mode;
DRV_pulse(play_eff);
+# if defined(SPLIT_KEYBOARD) && defined(SPLIT_HAPTIC_ENABLE)
+ split_haptic_play = haptic_config.mode;
+# endif
#endif
#ifdef SOLENOID_ENABLE
solenoid_fire_handler();
+# if defined(SPLIT_KEYBOARD) && defined(SPLIT_HAPTIC_ENABLE)
+ split_haptic_play = 1;
+# endif
#endif
}