From aa3cf55accc473c029d4b08a88900f14f964f2c3 Mon Sep 17 00:00:00 2001 From: Jeff Brown Date: Fri, 1 Oct 2010 15:29:37 -0700 Subject: Add VIRTUAL key flag for crespo virtual keys. Also fixed the name of the keymap files since it seems the name of the driver has changed. Change-Id: I4dad325d38a6c85d21e9dfbfa27fbdd5663bcb78 --- Android.mk | 2 +- cypress-touchkey.kcm | 64 ++++++++++++++++++++++++++++++++++++++++++++++++++++ cypress-touchkey.kl | 4 ++++ device.mk | 4 ++-- melfas-touchkey.kcm | 64 ---------------------------------------------------- melfas-touchkey.kl | 4 ---- 6 files changed, 71 insertions(+), 71 deletions(-) create mode 100644 cypress-touchkey.kcm create mode 100644 cypress-touchkey.kl delete mode 100644 melfas-touchkey.kcm delete mode 100644 melfas-touchkey.kl diff --git a/Android.mk b/Android.mk index dbef347..0cedd74 100644 --- a/Android.mk +++ b/Android.mk @@ -22,7 +22,7 @@ LOCAL_MODULE_TAGS := optional include $(BUILD_KEY_CHAR_MAP) include $(CLEAR_VARS) -LOCAL_SRC_FILES := melfas-touchkey.kcm +LOCAL_SRC_FILES := cypress-touchkey.kcm LOCAL_MODULE_TAGS := optional include $(BUILD_KEY_CHAR_MAP) diff --git a/cypress-touchkey.kcm b/cypress-touchkey.kcm new file mode 100644 index 0000000..8056364 --- /dev/null +++ b/cypress-touchkey.kcm @@ -0,0 +1,64 @@ +[type=QWERTY] + +# keycode display number base caps fn caps_fn + +A 'A' '2' 'a' 'A' '#' 0x00 +B 'B' '2' 'b' 'B' '<' 0x00 +C 'C' '2' 'c' 'C' '9' 0x00E7 +D 'D' '3' 'd' 'D' '5' 0x00 +E 'E' '3' 'e' 'E' '2' 0x0301 +F 'F' '3' 'f' 'F' '6' 0x00A5 +G 'G' '4' 'g' 'G' '-' '_' +H 'H' '4' 'h' 'H' '[' '{' +I 'I' '4' 'i' 'I' '$' 0x0302 +J 'J' '5' 'j' 'J' ']' '}' +K 'K' '5' 'k' 'K' '"' '~' +L 'L' '5' 'l' 'L' ''' '`' +M 'M' '6' 'm' 'M' '!' 0x00 +N 'N' '6' 'n' 'N' '>' 0x0303 +O 'O' '6' 'o' 'O' '(' 0x00 +P 'P' '7' 'p' 'P' ')' 0x00 +Q 'Q' '7' 'q' 'Q' '*' 0x0300 +R 'R' '7' 'r' 'R' '3' 0x20AC +S 'S' '7' 's' 'S' '4' 0x00DF +T 'T' '8' 't' 'T' '+' 0x00A3 +U 'U' '8' 'u' 'U' '&' 0x0308 +V 'V' '8' 'v' 'V' '=' '^' +W 'W' '9' 'w' 'W' '1' 0x00 +X 'X' '9' 'x' 'X' '8' 0xEF00 +Y 'Y' '9' 'y' 'Y' '%' 0x00A1 +Z 'Z' '9' 'z' 'Z' '7' 0x00 + +# on pc keyboards +COMMA ',' ',' ',' ';' ';' '|' +PERIOD '.' '.' '.' ':' ':' 0x2026 +AT '@' '0' '@' '0' '0' 0x2022 +SLASH '/' '/' '/' '?' '?' '\' + +SPACE 0x20 0x20 0x20 0x20 0xEF01 0xEF01 +ENTER 0xa 0xa 0xa 0xa 0xa 0xa + +TAB 0x9 0x9 0x9 0x9 0x9 0x9 +0 '0' '0' '0' ')' ')' ')' +1 '1' '1' '1' '!' '!' '!' +2 '2' '2' '2' '@' '@' '@' +3 '3' '3' '3' '#' '#' '#' +4 '4' '4' '4' '$' '$' '$' +5 '5' '5' '5' '%' '%' '%' +6 '6' '6' '6' '^' '^' '^' +7 '7' '7' '7' '&' '&' '&' +8 '8' '8' '8' '*' '*' '*' +9 '9' '9' '9' '(' '(' '(' + +GRAVE '`' '`' '`' '~' '`' '~' +MINUS '-' '-' '-' '_' '-' '_' +EQUALS '=' '=' '=' '+' '=' '+' +LEFT_BRACKET '[' '[' '[' '{' '[' '{' +RIGHT_BRACKET ']' ']' ']' '}' ']' '}' +BACKSLASH '\' '\' '\' '|' '\' '|' +SEMICOLON ';' ';' ';' ':' ';' ':' +APOSTROPHE ''' ''' ''' '"' ''' '"' +STAR '*' '*' '*' '*' '*' '*' +POUND '#' '#' '#' '#' '#' '#' +PLUS '+' '+' '+' '+' '+' '+' + diff --git a/cypress-touchkey.kl b/cypress-touchkey.kl new file mode 100644 index 0000000..ae3065c --- /dev/null +++ b/cypress-touchkey.kl @@ -0,0 +1,4 @@ +key 139 MENU WAKE_DROPPED VIRTUAL +key 102 HOME WAKE_DROPPED VIRTUAL +key 158 BACK WAKE_DROPPED VIRTUAL +key 217 SEARCH WAKE_DROPPED VIRTUAL diff --git a/device.mk b/device.mk index 322566d..66e2c43 100644 --- a/device.mk +++ b/device.mk @@ -55,13 +55,13 @@ PRODUCT_COPY_FILES += \ # Prebuilt kl keymaps PRODUCT_COPY_FILES += \ device/samsung/crespo/s3c-keypad.kl:system/usr/keylayout/s3c-keypad.kl \ - device/samsung/crespo/melfas-touchkey.kl:system/usr/keylayout/melfas-touchkey.kl \ + device/samsung/crespo/cypress-touchkey.kl:system/usr/keylayout/cypress-touchkey.kl \ device/samsung/crespo/sec_jack.kl:system/usr/keylayout/sec_jack.kl # Generated kcm keymaps PRODUCT_PACKAGES := \ s3c-keypad.kcm \ - melfas-touchkey.kcm + cypress-touchkey.kcm # Filesystem management tools PRODUCT_PACKAGES += \ diff --git a/melfas-touchkey.kcm b/melfas-touchkey.kcm deleted file mode 100644 index 8056364..0000000 --- a/melfas-touchkey.kcm +++ /dev/null @@ -1,64 +0,0 @@ -[type=QWERTY] - -# keycode display number base caps fn caps_fn - -A 'A' '2' 'a' 'A' '#' 0x00 -B 'B' '2' 'b' 'B' '<' 0x00 -C 'C' '2' 'c' 'C' '9' 0x00E7 -D 'D' '3' 'd' 'D' '5' 0x00 -E 'E' '3' 'e' 'E' '2' 0x0301 -F 'F' '3' 'f' 'F' '6' 0x00A5 -G 'G' '4' 'g' 'G' '-' '_' -H 'H' '4' 'h' 'H' '[' '{' -I 'I' '4' 'i' 'I' '$' 0x0302 -J 'J' '5' 'j' 'J' ']' '}' -K 'K' '5' 'k' 'K' '"' '~' -L 'L' '5' 'l' 'L' ''' '`' -M 'M' '6' 'm' 'M' '!' 0x00 -N 'N' '6' 'n' 'N' '>' 0x0303 -O 'O' '6' 'o' 'O' '(' 0x00 -P 'P' '7' 'p' 'P' ')' 0x00 -Q 'Q' '7' 'q' 'Q' '*' 0x0300 -R 'R' '7' 'r' 'R' '3' 0x20AC -S 'S' '7' 's' 'S' '4' 0x00DF -T 'T' '8' 't' 'T' '+' 0x00A3 -U 'U' '8' 'u' 'U' '&' 0x0308 -V 'V' '8' 'v' 'V' '=' '^' -W 'W' '9' 'w' 'W' '1' 0x00 -X 'X' '9' 'x' 'X' '8' 0xEF00 -Y 'Y' '9' 'y' 'Y' '%' 0x00A1 -Z 'Z' '9' 'z' 'Z' '7' 0x00 - -# on pc keyboards -COMMA ',' ',' ',' ';' ';' '|' -PERIOD '.' '.' '.' ':' ':' 0x2026 -AT '@' '0' '@' '0' '0' 0x2022 -SLASH '/' '/' '/' '?' '?' '\' - -SPACE 0x20 0x20 0x20 0x20 0xEF01 0xEF01 -ENTER 0xa 0xa 0xa 0xa 0xa 0xa - -TAB 0x9 0x9 0x9 0x9 0x9 0x9 -0 '0' '0' '0' ')' ')' ')' -1 '1' '1' '1' '!' '!' '!' -2 '2' '2' '2' '@' '@' '@' -3 '3' '3' '3' '#' '#' '#' -4 '4' '4' '4' '$' '$' '$' -5 '5' '5' '5' '%' '%' '%' -6 '6' '6' '6' '^' '^' '^' -7 '7' '7' '7' '&' '&' '&' -8 '8' '8' '8' '*' '*' '*' -9 '9' '9' '9' '(' '(' '(' - -GRAVE '`' '`' '`' '~' '`' '~' -MINUS '-' '-' '-' '_' '-' '_' -EQUALS '=' '=' '=' '+' '=' '+' -LEFT_BRACKET '[' '[' '[' '{' '[' '{' -RIGHT_BRACKET ']' ']' ']' '}' ']' '}' -BACKSLASH '\' '\' '\' '|' '\' '|' -SEMICOLON ';' ';' ';' ':' ';' ':' -APOSTROPHE ''' ''' ''' '"' ''' '"' -STAR '*' '*' '*' '*' '*' '*' -POUND '#' '#' '#' '#' '#' '#' -PLUS '+' '+' '+' '+' '+' '+' - diff --git a/melfas-touchkey.kl b/melfas-touchkey.kl deleted file mode 100644 index 3f36e08..0000000 --- a/melfas-touchkey.kl +++ /dev/null @@ -1,4 +0,0 @@ -key 139 MENU WAKE_DROPPED -key 102 HOME WAKE_DROPPED -key 158 BACK WAKE_DROPPED -key 217 SEARCH WAKE_DROPPED -- cgit v1.1