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 +