summaryrefslogtreecommitdiffstats
path: root/libs
diff options
context:
space:
mode:
authorSteve Kondik <shade@chemlab.org>2010-11-17 01:47:37 -0500
committerSteve Kondik <shade@chemlab.org>2010-11-17 02:07:06 -0500
commit2320814d9ebb0c34547f7cd0dd4970cb0536c89e (patch)
tree856ca2e7fd2f5a554c3a14cb7348d77fa4ec9a07 /libs
parent9cfafcd35c20646190eb502fbeddba0cbba25a63 (diff)
downloadframeworks_base-2320814d9ebb0c34547f7cd0dd4970cb0536c89e.zip
frameworks_base-2320814d9ebb0c34547f7cd0dd4970cb0536c89e.tar.gz
frameworks_base-2320814d9ebb0c34547f7cd0dd4970cb0536c89e.tar.bz2
input: Handle extra keys on Vision and Espresso separately
These devices have physical keyboards, but certain keys (? and SYM) are mapped differently. Check the target's name and use the appropriate set of keycodes. Change-Id: Ib91a47beb3681b411bbbd1946d5478334c5f3c33
Diffstat (limited to 'libs')
-rw-r--r--libs/ui/Android.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/libs/ui/Android.mk b/libs/ui/Android.mk
index 090dc3f..2b0c5e7 100644
--- a/libs/ui/Android.mk
+++ b/libs/ui/Android.mk
@@ -59,4 +59,10 @@ ifeq ($(TARGET_SIMULATOR),true)
LOCAL_LDLIBS += -lpthread
endif
+ifeq ($(TARGET_BOOTLOADER_BOARD_NAME),espresso)
+ LOCAL_CFLAGS += -DLATTE_KEYPAD
+else ifeq ($(TARGET_BOOTLOADER_BOARD_NAME),vision)
+ LOCAL_CFLAGS += -DVISION_KEYPAD
+endif
+
include $(BUILD_SHARED_LIBRARY)