From cb0fedf76c920db56c7cc896eb822c00b8617b3a Mon Sep 17 00:00:00 2001 From: Luca Stefani Date: Sun, 23 Aug 2020 09:54:32 +0200 Subject: obiwan: Import stock keylayout and idc configs Change-Id: I910171f3a3d750f08df7169d9cb7e349abbce567 --- device.mk | 7 +++++++ idc/goodix_ts.idc | 4 ++++ idc/goodix_ts_station.idc | 4 ++++ keychars/goodix_ts.kcm | 1 + keylayout/goodix_ts.kl | 18 ++++++++++++++++++ 5 files changed, 34 insertions(+) create mode 100644 idc/goodix_ts.idc create mode 100644 idc/goodix_ts_station.idc create mode 100644 keychars/goodix_ts.kcm create mode 100644 keylayout/goodix_ts.kl diff --git a/device.mk b/device.mk index aeb4d75..fe61f57 100644 --- a/device.mk +++ b/device.mk @@ -47,6 +47,13 @@ TARGET_SCREEN_WIDTH := 1080 PRODUCT_PACKAGES += \ FrameRateTile +# Input +PRODUCT_COPY_FILES += \ + $(LOCAL_PATH)/idc/goodix_ts.idc:$(TARGET_COPY_OUT_SYSTEM)/usr/idc/goodix_ts.idc \ + $(LOCAL_PATH)/idc/goodix_ts_station.idc:$(TARGET_COPY_OUT_SYSTEM)/usr/idc/goodix_ts_station.idc \ + $(LOCAL_PATH)/keychars/goodix_ts.kcm:$(TARGET_COPY_OUT_SYSTEM)/usr/keychars/goodix_ts.kcm \ + $(LOCAL_PATH)/keylayout/goodix_ts.kl:$(TARGET_COPY_OUT_SYSTEM)/usr/keylayout/goodix_ts.kl + PRODUCT_SHIPPING_API_LEVEL := 29 # Inherit from asus sm8250-common diff --git a/idc/goodix_ts.idc b/idc/goodix_ts.idc new file mode 100644 index 0000000..6cd7276 --- /dev/null +++ b/idc/goodix_ts.idc @@ -0,0 +1,4 @@ +device.internal = 1 +touch.deviceType = touchScreen +touch.orientationAware = 1 + diff --git a/idc/goodix_ts_station.idc b/idc/goodix_ts_station.idc new file mode 100644 index 0000000..75676f2 --- /dev/null +++ b/idc/goodix_ts_station.idc @@ -0,0 +1,4 @@ +device.internal = 0 +touch.deviceType = touchScreen +touch.orientationAware = 1 +touch.wake = 0 diff --git a/keychars/goodix_ts.kcm b/keychars/goodix_ts.kcm new file mode 100644 index 0000000..a510228 --- /dev/null +++ b/keychars/goodix_ts.kcm @@ -0,0 +1 @@ +type SPECIAL_FUNCTION diff --git a/keylayout/goodix_ts.kl b/keylayout/goodix_ts.kl new file mode 100644 index 0000000..5e0b616 --- /dev/null +++ b/keylayout/goodix_ts.kl @@ -0,0 +1,18 @@ +key 116 GESTURE_DOUBLE_CLICK WAKE VIRTUAL +key 103 GESTURE_SWIPE_UP WAKE VIRTUAL +key 158 BACK VIRTUAL +key 139 APP_SWITCH VIRTUAL +key 102 HOME VIRTUAL +key 17 GESTURE_W WAKE VIRTUAL +key 31 GESTURE_S WAKE VIRTUAL +key 18 GESTURE_E WAKE VIRTUAL +key 50 GESTURE_M WAKE VIRTUAL +key 44 GESTURE_Z WAKE VIRTUAL +key 47 GESTURE_V WAKE VIRTUAL +key 119 GESTURE_PAUSE WAKE VIRTUAL +key 159 GESTURE_FORWARD WAKE VIRTUAL +key 168 GESTURE_REWIND WAKE VIRTUAL +key 33 FINGERPRINT_EARLYWAKEUP +key 22 FINGERPRINT_SCREEN_OFF_LEAVE +key 38 FINGERPRINT_SCREEN_OFF_TAP_IN_IDENTIFY_AREA +key 24 FINGERPRINT_PARTIAL_FINGER -- cgit v1.2.3