From 3a2cd555524bacdbb26fe2ba76a1573a28b94644 Mon Sep 17 00:00:00 2001 From: Jeff Brown Date: Thu, 10 Nov 2011 14:17:35 -0800 Subject: Add key maps for tuna keypad. Bug: 5580373 Change-Id: I9511eeffbdb723f13f273fff7f945e0ad1ea4826 --- device.mk | 5 +++++ tuna-gpio-keypad.kcm | 15 +++++++++++++++ tuna-gpio-keypad.kl | 17 +++++++++++++++++ 3 files changed, 37 insertions(+) create mode 100644 tuna-gpio-keypad.kcm create mode 100644 tuna-gpio-keypad.kl 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 -- cgit v1.2.3