From 8d61bfe4e866c3f61339f4c70aa98b60a3605e76 Mon Sep 17 00:00:00 2001 From: Michael Date: Wed, 16 May 2012 12:48:04 +0300 Subject: [PATCH] update touchscreen configuration --- prebuilt/htcleo-touchscreen.idc | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/prebuilt/htcleo-touchscreen.idc b/prebuilt/htcleo-touchscreen.idc index b05822e..274781f 100644 --- a/prebuilt/htcleo-touchscreen.idc +++ b/prebuilt/htcleo-touchscreen.idc @@ -26,6 +26,26 @@ touch.size.scale = 10 touch.size.bias = 160 touch.size.isSummed = 1 +# Touch Size +touch.touchSize.calibration = pressure + +# Tool Size +# Driver reports tool size as a linear width measurement summed over +# all contact points. +# +# Raw width field measures approx. 1 unit per millimeter +# of tool size on the surface where a raw width of 1 corresponds +# to about 17mm of physical size. Given that the display resolution +# is 10px per mm we obtain a scale factor of 10 pixels / unit and +# a bias of 160 pixels. In addition, the raw width represents a +# sum of all contact area so we note this fact in the calibration. +touch.toolSize.calibration = linear +touch.toolSize.linearScale = 10 +touch.toolSize.linearBias = 160 +touch.toolSize.isSummed = 1 + +touch.filterTouchEvents = 1 + # Pressure # Driver reports signal strength as pressure. # @@ -38,8 +58,8 @@ touch.size.isSummed = 1 # a featherlight touch will be below 1.0 and a heavy or large touch # will be above 1.0. We don't expect these values to be accurate. touch.pressure.calibration = amplitude +touch.pressure.source = default touch.pressure.scale = 0.01 # Orientation -touch.orientation.calibration = none - +touch.orientation.calibration = none \ No newline at end of file