add support for TSPDRV vibration
* Needed for the LG V30, G7, V35, V40
* Use TW_HAPTICS_TSPDRV in your BoardConfig.mk to enable it.
Change-Id: I0970ed5c046e851f7e6f562283523c7214c8d2b5
diff --git a/minuitwrp/Android.mk b/minuitwrp/Android.mk
index b1fb26a..c844082 100644
--- a/minuitwrp/Android.mk
+++ b/minuitwrp/Android.mk
@@ -187,6 +187,11 @@
LOCAL_CFLAGS += -DWHITELIST_INPUT=$(TW_WHITELIST_INPUT)
endif
+ifeq ($(TW_HAPTICS_TSPDRV), true)
+ LOCAL_SRC_FILES += tspdrv.cpp
+ LOCAL_CFLAGS += -DTW_HAPTICS_TSPDRV
+endif
+
ifeq ($(TW_DISABLE_TTF), true)
$(warning ****************************************************************************)
$(warning * TW_DISABLE_TTF support has been deprecated in TWRP. *)