| Jeff Brown | bc13624 | 2010-09-14 16:27:52 -0700 | [diff] [blame] | 1 | # Copyright (C) 2010 The Android Open Source Project |
| 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | # you may not use this file except in compliance with the License. |
| 5 | # You may obtain a copy of the License at |
| 6 | # |
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | # See the License for the specific language governing permissions and |
| 13 | # limitations under the License. |
| 14 | |
| 15 | # |
| Jeff Brown | 29e278b | 2010-08-31 16:30:44 -0700 | [diff] [blame] | 16 | # Input Device Calibration File |
| Jeff Brown | bc13624 | 2010-09-14 16:27:52 -0700 | [diff] [blame] | 17 | # |
| Jeff Brown | 29e278b | 2010-08-31 16:30:44 -0700 | [diff] [blame] | 18 | |
| 19 | # Touch Area |
| 20 | touch.touchArea.calibration = pressure |
| 21 | |
| 22 | # Tool Area |
| 23 | # Raw width field measures approx. 0.5 units per millimeter |
| 24 | # of tool area on the surface where a raw width of 15 corresponds |
| 25 | # to about 18mm of physical size. Given that the display resolution |
| 26 | # is 9.6px per mm we obtain a scale factor of 4.8 pixels / unit and |
| 27 | # a bias of 100.8 pixels. Each contact point is measured independently |
| 28 | # so the raw width is not a sum. |
| 29 | touch.toolArea.calibration = linear |
| 30 | touch.toolArea.linearScale = 4.8 |
| 31 | touch.toolArea.linearBias = 100.8 |
| 32 | touch.toolArea.isSummed = 0 |
| 33 | |
| 34 | # Pressure |
| 35 | # Driver reports signal strength as pressure. |
| 36 | # A normal thumb touch while touching the back of the device |
| 37 | # typically registers about 40 signal strength units although |
| 38 | # this value is highly variable and is sensitive to contact area, |
| 39 | # manner of contact and environmental conditions. We set the |
| 40 | # scale so that a normal touch with good signal strength will be |
| 41 | # reported as having a pressure somewhere in the vicinity of 1.0, |
| 42 | # a featherlight touch will be below 1.0 and a heavy or large touch |
| 43 | # will be above 1.0. We don't expect these values to be accurate. |
| 44 | touch.pressure.calibration = amplitude |
| 45 | touch.pressure.source = default |
| 46 | touch.pressure.scale = 0.025 |
| 47 | |
| 48 | # Size |
| 49 | touch.size.calibration = normalized |
| 50 | |
| 51 | # Orientation |
| 52 | touch.orientation.calibration = none |
| 53 | |