From: notaz Date: Thu, 14 Jun 2012 23:55:52 +0000 (+0300) Subject: add keymaps X-Git-Tag: r5~4 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2a8614ac536a6b0f83c7f83cd6eaf304807a56fd;p=android_pandora.git add keymaps --- diff --git a/AndroidBoard.mk b/AndroidBoard.mk index a36cf68..48b6e5d 100644 --- a/AndroidBoard.mk +++ b/AndroidBoard.mk @@ -16,8 +16,9 @@ PRODUCT_COPY_FILES += \ endif # keyboard -#PRODUCT_COPY_FILES += \ - $(LOCAL_PATH)/TWL4030_Keypad.kl:system/usr/keylayout/TWL4030_Keypad.kl +PRODUCT_COPY_FILES += \ + $(LOCAL_PATH)/keypad.kl:system/usr/keylayout/keypad.kl \ + $(LOCAL_PATH)/gpio-keys.kl:system/usr/keylayout/gpio-keys.kl # Wifi PRODUCT_COPY_FILES += \ @@ -35,4 +36,9 @@ PRODUCT_COPY_FILES += \ PRODUCT_COPY_FILES += \ $(LOCAL_PATH)/initlogo.rle:root/initlogo.rle.bak +include $(CLEAR_VARS) +LOCAL_SRC_FILES := keypad.kcm +LOCAL_MODULE_TAGS := optional +include $(BUILD_KEY_CHAR_MAP) + include frameworks/base/data/sounds/OriginalAudio.mk diff --git a/gpio-keys.kl b/gpio-keys.kl new file mode 100644 index 0000000..9f8cba8 --- /dev/null +++ b/gpio-keys.kl @@ -0,0 +1,17 @@ + +# linux android flags + +key 108 DPAD_DOWN +key 103 DPAD_UP +key 105 DPAD_LEFT +key 106 DPAD_RIGHT +key 139 HOME WAKE # pandora +key 29 BUTTON_SELECT +key 56 BUTTON_START +key 102 BUTTON_A +key 107 BUTTON_B +key 109 BUTTON_X +key 104 BUTTON_Y +key 54 BUTTON_L1 +key 97 BUTTON_R1 + diff --git a/keypad.kcm b/keypad.kcm new file mode 100644 index 0000000..e448d2d --- /dev/null +++ b/keypad.kcm @@ -0,0 +1,72 @@ +[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' '\' 0x00E7 +D 'D' '3' 'd' 'D' '-' 0x00 +E 'E' '3' 'e' 'E' '(' 0x0301 +F 'F' '3' 'f' 'F' '+' 0x00A5 +G 'G' '4' 'g' 'G' '=' '_' +H 'H' '4' 'h' 'H' '`' '{' +I 'I' '4' 'i' 'I' 'I' 0x0302 +J 'J' '5' 'j' 'J' 0x2019 '}' +K 'K' '5' 'k' 'K' 0x00A3 '~' +L 'L' '5' 'l' 'L' 0x00A5 '`' +M 'M' '6' 'm' 'M' 0x20AC 0x00 +N 'N' '6' 'n' 'N' '$' 0x0303 +O 'O' '6' 'o' 'O' 'O' 0x00 +P 'P' '7' 'p' 'P' 'P' 0x00 +Q 'Q' '7' 'q' 'Q' 'Q' 0x0300 +R 'R' '7' 'r' 'R' ')' 0x20AC +S 'S' '7' 's' 'S' '"' 0x00DF +T 'T' '8' 't' 'T' '!' 0x00A3 +U 'U' '8' 'u' 'U' 'U' 0x0308 +V 'V' '8' 'v' 'V' '#' '^' +W 'W' '9' 'w' 'W' '@' 0x00 +X 'X' '9' 'x' 'X' '?' 0xEF00 +Y 'Y' '9' 'y' 'Y' '_' 0x00A1 +Z 'Z' '9' 'z' 'Z' '/' 0x00 + +SPACE 0x20 0x20 0x20 0x20 0xEF01 0xEF01 +ENTER 0xa 0xa 0xa 0xa 0xa 0xa + +0 '0' '0' '0' ']' ']' ']' +1 '1' '1' '1' 0xA7 0xA7 0xA7 +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' '[' '[' '[' + +PERIOD '.' '.' '.' '>' ':' ':' +COMMA ',' ',' ',' '<' ';' ';' + +APOSTROPHE ''' ''' ''' ''' ''' ''' +#F14 '|' '|' '|' '|' '|' '|' +BACKSLASH '\' '\' '\' '\' '\' '\' +MINUS '-' '-' '-' '-' '-' '-' +LEFT_BRACKET '(' '(' '(' '(' '(' '(' +PLUS '+' '+' '+' '+' '+' '+' +EQUALS '=' '=' '=' '=' '=' '=' +GRAVE '`' '`' '`' '`' '`' '`' +#F13 '’' '’' '’' '’' '’' '’' +#F18 '£' '£' '£' '£' '£' '£' +#YEN '¥' '¥' '¥' '¥' '¥' '¥' +#F23 '€' '€' '€' '€' '€' '€' +#F22 '$' '$' '$' '$' '$' '$' +RIGHT_BRACKET ')' ')' ')' ')' ')' ')' +#F19 '"' '"' '"' '"' '"' '"' +#F17 '!' '!' '!' '!' '!' '!' +POUND '#' '#' '#' '#' '#' '#' +AT '@' '@' '@' '@' '@' '@' +#QUESTION '?' '?' '?' '?' '?' '?' +#F15 '_' '_' '_' '_' '_' '_' +SLASH '/' '/' '/' '/' '/' '/' +TAB 0x9 0x9 0x9 0x9 0x9 0x9 +#F21 ':' ':' ':' ':' ':' ':' +SEMICOLON ';' ';' ';' ';' ';' ';' diff --git a/keypad.kl b/keypad.kl new file mode 100644 index 0000000..2d110d2 --- /dev/null +++ b/keypad.kl @@ -0,0 +1,95 @@ + + +# linux android flags + +key 16 Q +key 17 W +key 18 E +key 19 R +key 20 T +key 21 Y +key 22 U +key 23 I +key 24 O +key 25 P +key 30 A +key 31 S +key 32 D +key 33 F +key 34 G +key 35 H +key 36 J +key 37 K +key 38 L +key 44 Z +key 45 X +key 46 C +key 47 V +key 48 B +key 49 N +key 50 M + +key 57 SPACE +key 28 ENTER + +key 11 0 +key 2 1 +key 3 2 +key 4 3 +key 5 4 +key 6 5 +key 7 6 +key 8 7 +key 9 8 +key 10 9 + +key 40 A # APOSTROPHE +key 184 B # | kc missing +key 43 C # BACKSLASH +key 74 D # MINUS +key 26 E # LEFT_BRACKET +key 78 F # PLUS +key 13 G # EQUALS +key 41 H # GRAVE +key 183 J # ’ kc missing +key 188 K # £ kc missing +key 124 L # ¥ kc missing +key 193 M # € kc missing +key 192 N # $ kc missing +key 27 R # RIGHT_BRACKET +key 189 S # " kc missing +key 187 T # ! kc missing +key 186 V # POUND +key 190 W # AT +key 214 X # ? kc missing +key 185 Y # _ kc missing +key 53 Z # SLASH +key 15 TAB +key 39 COMMA # SEMICOLON +key 191 PERIOD # : kc missing + +key 52 PERIOD +key 51 COMMA +key 464 ALT_LEFT # Fn +key 14 DEL # Backspace +key 1 BACK WAKE_DROPPED # Esc +key 42 SHIFT_LEFT + +key 59 HOME WAKE # F1 +key 60 MENU +key 61 SOFT_LEFT +key 62 SOFT_RIGHT +key 63 EXPLORER # F5 +key 64 ENVELOPE +key 65 MEDIA_PLAY_PAUSE +key 66 MEDIA_PREVIOUS +key 67 MEDIA_NEXT +key 68 MEDIA_STOP # F10 +key 87 VOLUME_DOWN # F11 +key 88 VOLUME_UP # F12 + +# for gpio-keys +key 108 DPAD_DOWN +key 103 DPAD_UP +key 105 DPAD_LEFT +key 106 DPAD_RIGHT