From 50623401a9eb0f9725c0066ba2a1d51eddabcc99 Mon Sep 17 00:00:00 2001 From: Jens Reidel Date: Mon, 5 Feb 2024 04:41:44 +0100 Subject: [PATCH] sm8450-common: Import fingerprint sensor keylayouts from marble V14.0.9.0.TMREUXM Change-Id: I70aaedf6225ac556fee608aa76402c5076cf408e Signed-off-by: Jens Reidel --- common.mk | 5 +++++ keylayout/uinput-fpc.kl | 28 ++++++++++++++++++++++++++++ keylayout/uinput-goodix.kl | 19 +++++++++++++++++++ 3 files changed, 52 insertions(+) create mode 100644 keylayout/uinput-fpc.kl create mode 100644 keylayout/uinput-goodix.kl diff --git a/common.mk b/common.mk index d82a542..8b213b9 100644 --- a/common.mk +++ b/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 += \ android.hardware.keymaster@4.1.vendor \ diff --git a/keylayout/uinput-fpc.kl b/keylayout/uinput-fpc.kl new file mode 100644 index 0000000..c9caaa7 --- /dev/null +++ b/keylayout/uinput-fpc.kl @@ -0,0 +1,28 @@ +# +# FPC1020 Touch sensor driver +# +# Copyright (c) 2013,2014 Fingerprint Cards AB +# +# 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. diff --git a/keylayout/uinput-goodix.kl b/keylayout/uinput-goodix.kl new file mode 100644 index 0000000..016c6b6 --- /dev/null +++ b/keylayout/uinput-goodix.kl @@ -0,0 +1,19 @@ +# +# FPC1020 Touch sensor driver +# +# Copyright (c) 2013,2014 Fingerprint Cards AB +# +# 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 +