From 5e4fc6d212bac1f1825b5ecc31073eff4bbcbf9b Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Fri, 15 Jun 2012 18:22:18 +0200 Subject: Add ST1232 touchscreen support The touchscreen was detected and handled as a pointer device by default. Add a device configuration file to use it as a touchscreen. Signed-off-by: Laurent Pinchart --- device_base.mk | 2 ++ st1232-touchscreen.idc | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 st1232-touchscreen.idc diff --git a/device_base.mk b/device_base.mk index 2525f6d..11d33af 100644 --- a/device_base.mk +++ b/device_base.mk @@ -15,8 +15,10 @@ # PRODUCT_COPY_FILES += \ + frameworks/base/data/etc/android.hardware.touchscreen.multitouch.distinct.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.distinct.xml \ device/renesas/armadillo/init.armadillo800eva.rc:root/init.armadillo800eva.rc \ device/renesas/armadillo/media_profiles.xml:system/etc/media_profiles.xml \ device/renesas/armadillo/armadillo-tca6416-keypad.kl:system/usr/keylayout/armadillo-tca6416-keypad.kl \ device/renesas/armadillo/armadillo-tca6416-keypad.kcm:system/usr/keychars/armadillo-tca6416-keypad.kcm \ + device/renesas/armadillo/st1232-touchscreen.idc:system/usr/idc/st1232-touchscreen.idc \ device/renesas/armadillo/vold.fstab:system/etc/vold.fstab diff --git a/st1232-touchscreen.idc b/st1232-touchscreen.idc new file mode 100644 index 0000000..e1db0c9 --- /dev/null +++ b/st1232-touchscreen.idc @@ -0,0 +1,33 @@ +# Copyright (C) 2010 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. + +# +# Input Device Configuration File for the Ampire touch screen. +# + +# Basic Parameters +touch.deviceType = touchScreen +touch.orientationAware = 0 + +# Size +# Based on empirical measurements, we estimate the size of the contact +# using size = sqrt(area) * 28 + 0. +touch.size.calibration = area +touch.size.scale = 28 +touch.size.bias = 0 +touch.size.isSummed = 0 + +# Pressure and orientation are not supported +touch.pressure.calibration = none +touch.orientation.calibration = none -- cgit v1.2.3