瀏覽代碼

sm8450-common: Import fingerprint sensor keylayouts from marble V14.0.9.0.TMREUXM

Change-Id: I70aaedf6225ac556fee608aa76402c5076cf408e
Signed-off-by: Jens Reidel <[email protected]>
Jens Reidel 1 年之前
父節點
當前提交
50623401a9
共有 3 個文件被更改,包括 52 次插入0 次删除
  1. 5 0
      common.mk
  2. 28 0
      keylayout/uinput-fpc.kl
  3. 19 0
      keylayout/uinput-goodix.kl

+ 5 - 0
common.mk

@@ -263,6 +263,11 @@ PRODUCT_COPY_FILES += \
 PRODUCT_PACKAGES += \
     libjson
 
+# Keylayout
+PRODUCT_COPY_FILES += \
+    $(LOCAL_PATH)/keylayout/uinput-fpc.kl:$(TARGET_COPY_OUT_VENDOR)/usr/keylayout/uinput-fpc.kl \
+    $(LOCAL_PATH)/keylayout/uinput-goodix.kl:$(TARGET_COPY_OUT_VENDOR)/usr/keylayout/uinput-goodix.kl
+
 # Keymaster
 PRODUCT_PACKAGES += \
     [email protected] \

+ 28 - 0
keylayout/uinput-fpc.kl

@@ -0,0 +1,28 @@
+#
+# FPC1020 Touch sensor driver
+#
+# Copyright (c) 2013,2014 Fingerprint Cards AB <[email protected]>
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License Version 2
+# as published by the Free Software Foundation.
+#
+
+#key  304   DPAD_CENTER  VIRTUAL
+#key  102   HOME         VIRTUAL
+#key  108   SYSTEM_NAVIGATION_DOWN
+#key  103   SYSTEM_NAVIGATION_DOWN
+# Swipe Up
+#key 103   DPAD_UP VIRTUAL
+
+# Swipe Down
+#key 108   DPAD_DOWN VIRTUAL
+
+# Single Tap
+key 105   DPAD_CENTER VIRTUAL
+
+# Double Tap
+key 106   BUTTON_C VIRTUAL
+
+# Keymap between kernel and framework.
+# Refer to input-event-codes.h(kernel) and KeyEvent.java(framework) for more details.

+ 19 - 0
keylayout/uinput-goodix.kl

@@ -0,0 +1,19 @@
+#
+# FPC1020 Touch sensor driver
+#
+# Copyright (c) 2013,2014 Fingerprint Cards AB <[email protected]>
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License Version 2
+# as published by the Free Software Foundation.
+#
+
+#single click
+key  353    DPAD_CENTER  VIRTUAL
+#double click
+key  306    BUTTON_C     VIRTUAL
+# HOME --> DPAD_CENTER
+key  102   DPAD_CENTER  VIRTUAL
+#key 105   DPAD_LEFT    VIRTUAL
+#key  106   DPAD_RIGHT   VIRTUAL
+