android-x86 4.0 virtual physical keyboard inspiron duo

Inspiron duo 上のandroid-x86 4.0 tegav2 ビルドを物理キーボードと仮想キーボードで使えるようにしてみた。

./device/tegatech/tegav2/AT_Translated_Set_2_keyboard.kl にキーレイアウトを追加すると、

  • 仮想キーボード入力中に物理キーボード入力できる。

  • タスクトレイのキーボード設定から、仮想キーボードを隠して物理キーボード入力に切り替えることができる。

./device/tegatech/tegav2/AT_Translated_Set_2_keyboard.kl
# Copyright (C) 2012 The Android-x86 Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#

key 1 HOME WAKE_DROPPED
key 114 VOLUME_DOWN
key 115 VOLUME_UP
key 125 APP_SWITCH
key 127 ESCAPE WAKE_DROPPED

#

#key 1 BACK WAKE_DROPPED
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 11 0
key 12 MINUS
key 13 EQUALS
key 14 DEL
key 15 TAB
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 26 LEFT_BRACKET
key 27 RIGHT_BRACKET
key 28 ENTER
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 39 SEMICOLON
key 40 APOSTROPHE
key 42 SHIFT_LEFT
key 43 BACKSLASH
key 44 Z
key 45 X
key 46 C
key 47 V
key 48 B
key 49 N
key 50 M
key 51 COMMA
key 52 PERIOD
key 53 SLASH
key 56 ALT_LEFT
key 57 SPACE
key 60 SOFT_RIGHT WAKE
key 61 CALL WAKE_DROPPED
key 62 ENDCALL WAKE_DROPPED
key 64 ENDCALL WAKE_DROPPED
key 103 DPAD_UP WAKE_DROPPED
key 105 DPAD_LEFT WAKE_DROPPED
key 106 DPAD_RIGHT WAKE_DROPPED
key 107 ENDCALL WAKE_DROPPED
key 108 DPAD_DOWN WAKE_DROPPED
key 113 VOLUME_MUTE
#key 114 VOLUME_DOWN
#key 115 VOLUME_UP
key 116 POWER WAKE
#key 125 HOME WAKE
#key 127 MENU WAKE_DROPPED
key 139 MENU WAKE_DROPPED
key 150 EXPLORER
key 155 ENVELOPE
key 211 FOCUS
key 212 CAMERA
key 215 AT
key 221 DPAD_CENTER WAKE_DROPPED
key 227 STAR
key 228 POUND
key 230 SOFT_RIGHT WAKE
key 231 CALL WAKE_DROPPED
key 399 GRAVE