summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuK1337 <priv.luk@gmail.com>2022-07-09 18:25:22 +0200
committerLuK1337 <priv.luk@gmail.com>2022-08-19 18:11:29 +0200
commit7642ebadd61476b26fa365c6b23e25ebb5b3c64e (patch)
treec110bc3090b5ad9413756c38decb4460328486c4
parentbd3828a7c899cd9492c828f7837f87053cad5c1c (diff)
kebab: Override available touchscreen gestures list
Change-Id: I14b0e034094c0cf4b60a86f5f26fc8d77ab50e43
-rw-r--r--BoardConfig.mk5
-rw-r--r--touch/include/TouchscreenGestureConfig.h36
2 files changed, 41 insertions, 0 deletions
diff --git a/BoardConfig.mk b/BoardConfig.mk
index a4a6dff..caba995 100644
--- a/BoardConfig.mk
+++ b/BoardConfig.mk
@@ -34,5 +34,10 @@ BOARD_SUPER_PARTITION_SIZE := 7516192768
TARGET_RECOVERY_FSTAB := $(DEVICE_PATH)/init/fstab.qcom
TARGET_RECOVERY_UI_MARGIN_HEIGHT := 103
+# Touch
+SOONG_CONFIG_NAMESPACES += OPLUS_LINEAGE_TOUCH_HAL
+SOONG_CONFIG_OPLUS_LINEAGE_TOUCH_HAL := INCLUDE_DIR
+SOONG_CONFIG_OPLUS_LINEAGE_TOUCH_HAL_INCLUDE_DIR := $(DEVICE_PATH)/touch/include
+
# Include the proprietary files BoardConfig.
-include vendor/oneplus/kebab/BoardConfigVendor.mk
diff --git a/touch/include/TouchscreenGestureConfig.h b/touch/include/TouchscreenGestureConfig.h
new file mode 100644
index 0000000..1d30cbb
--- /dev/null
+++ b/touch/include/TouchscreenGestureConfig.h
@@ -0,0 +1,36 @@
+/*
+ * Copyright (C) 2022 The LineageOS Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#pragma once
+
+#include "TouchscreenGesture.h"
+
+namespace vendor {
+namespace lineage {
+namespace touch {
+namespace V1_0 {
+namespace implementation {
+
+const int TouchscreenGesture::kSupportedGestures = makeBitField(
+ kGestureUpVee, kGestureLeftVee, kGestureRightVee, kGestureCircle, kGestureDoubleSwipe,
+ kGestureLeftToRight, kGestureRightToLeft, kGestureUpToDown, kGestureDownToUp, kGestureM,
+ kGestureW, kGestureSingleTap, kGestureS);
+
+} // namespace implementation
+} // namespace V1_0
+} // namespace touch
+} // namespace lineage
+} // namespace vendor