summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeff Brown <jeffbrown@google.com>2011-11-10 14:40:44 -0800
committerAndroid (Google) Code Review <android-gerrit@google.com>2011-11-10 14:40:44 -0800
commita9d834254abbf2e5155a46a2c251e195f8088fec (patch)
tree88911893b63cead17c591082d994fa9792e04124
parent614cf5824e84295a644622444e4320f0dfdd2300 (diff)
parent3a2cd555524bacdbb26fe2ba76a1573a28b94644 (diff)
downloaddevice_samsung_tuna-a9d834254abbf2e5155a46a2c251e195f8088fec.zip
device_samsung_tuna-a9d834254abbf2e5155a46a2c251e195f8088fec.tar.gz
device_samsung_tuna-a9d834254abbf2e5155a46a2c251e195f8088fec.tar.bz2
Merge "Add key maps for tuna keypad. Bug: 5580373" into ics-mr1
-rw-r--r--device.mk5
-rw-r--r--tuna-gpio-keypad.kcm15
-rw-r--r--tuna-gpio-keypad.kl17
3 files changed, 37 insertions, 0 deletions
diff --git a/device.mk b/device.mk
index fa2aa8d..67ba06d 100644
--- a/device.mk
+++ b/device.mk
@@ -96,6 +96,11 @@ PRODUCT_PACKAGES += \
VisualizationWallpapers \
librs_jni
+# Key maps
+PRODUCT_COPY_FILES += \
+ device/samsung/tuna/tuna-gpio-keypad.kl:system/usr/keylayout/tuna-gpio-keypad.kl \
+ device/samsung/tuna/tuna-gpio-keypad.kcm:system/usr/keychars/tuna-gpio-keypad.kcm
+
# Input device calibration files
PRODUCT_COPY_FILES += \
device/samsung/tuna/Melfas_MMSxxx_Touchscreen.idc:system/usr/idc/Melfas_MMSxxx_Touchscreen.idc
diff --git a/tuna-gpio-keypad.kcm b/tuna-gpio-keypad.kcm
new file mode 100644
index 0000000..1a3cb57
--- /dev/null
+++ b/tuna-gpio-keypad.kcm
@@ -0,0 +1,15 @@
+# Copyright (C) 2011 The Android 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
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+type SPECIAL_FUNCTION
diff --git a/tuna-gpio-keypad.kl b/tuna-gpio-keypad.kl
new file mode 100644
index 0000000..383fe6b
--- /dev/null
+++ b/tuna-gpio-keypad.kl
@@ -0,0 +1,17 @@
+# Copyright (C) 2011 The Android 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
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+key 114 VOLUME_DOWN WAKE
+key 115 VOLUME_UP WAKE
+key 116 POWER WAKE