summaryrefslogtreecommitdiff
path: root/firmware/drivers/button.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/drivers/button.c')
-rw-r--r--firmware/drivers/button.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/firmware/drivers/button.c b/firmware/drivers/button.c
index c165e8f566..1cc95428ab 100644
--- a/firmware/drivers/button.c
+++ b/firmware/drivers/button.c
@@ -672,3 +672,15 @@ int button_apply_acceleration(const unsigned int data)
672 return delta; 672 return delta;
673} 673}
674#endif /* HAVE_WHEEL_ACCELERATION */ 674#endif /* HAVE_WHEEL_ACCELERATION */
675
676#if (defined(HAVE_TOUCHPAD) || defined(HAVE_TOUCHSCREEN)) && !defined(HAS_BUTTON_HOLD)
677void button_enable_touch(bool en)
678{
679#ifdef HAVE_TOUCHPAD
680 touchpad_enable(en);
681#endif
682#ifdef HAVE_TOUCHSCREEN
683 touchscreen_enable(en);
684#endif
685}
686#endif