Only ABS_DISTANCE is not enough for upper OS to distiguish hover event
be triggered from object form faraway to and close touchpad surface or from
object prepare to leave the touchpad surface. We add BNT_TOOL_FINGER to help
it.
Object_at_faraway object_at_hover_area object_touch_touchpad
BTN_TOUCH 0 0 1
BTN_TOOL_FINGER 0 1 1
ABS_DISTANCE 0 1 0
Signed-off by: Duson Lin [off-list ref]
---
drivers/input/mouse/elan_i2c_core.c | 14 +++++++++-----
1 file changed, 9 insertions(+), 5 deletions(-)
Hi Duson,
On Wed, Mar 30, 2016 at 10:02:02AM +0800, DusonLin wrote:
quoted hunk
Only ABS_DISTANCE is not enough for upper OS to distiguish hover event
be triggered from object form faraway to and close touchpad surface or from
object prepare to leave the touchpad surface. We add BNT_TOOL_FINGER to help
it.
Object_at_faraway object_at_hover_area object_touch_touchpad
BTN_TOUCH 0 0 1
BTN_TOOL_FINGER 0 1 1
ABS_DISTANCE 0 1 0
Signed-off by: Duson Lin [off-list ref]
---
drivers/input/mouse/elan_i2c_core.c | 14 +++++++++-----
1 file changed, 9 insertions(+), 5 deletions(-)
Hello Dmitry,
Please check my response below, thanks.
-----Original Message-----
From: 'Dmitry Torokhov' [mailto:dmitry.torokhov@gmail.com]
Sent: Wednesday, March 30, 2016 10:31 AM
To: DusonLin
Cc: Linux-kernel@vger.kernel.org; linux-input@vger.kernel.org; 'Charles Mooney'; 'jeff'; 'Phoenix'
Subject: Re: [PATCH] Input: Change BTN_TOOL_FINGER falg when HOVER event trigger
Hi Duson,
On Wed, Mar 30, 2016 at 10:02:02AM +0800, DusonLin wrote:
quoted hunk
Only ABS_DISTANCE is not enough for upper OS to distiguish hover
event be triggered from object form faraway to and close touchpad
surface or from object prepare to leave the touchpad surface. We add
BNT_TOOL_FINGER to help it.
Object_at_faraway object_at_hover_area object_touch_touchpad
BTN_TOUCH 0 0 1
BTN_TOOL_FINGER 0 1 1
ABS_DISTANCE 0 1 0
Signed-off by: Duson Lin [off-list ref]
---
drivers/input/mouse/elan_i2c_core.c | 14 +++++++++-----
1 file changed, 9 insertions(+), 5 deletions(-)
diff --git a/drivers/input/mouse/elan_i2c_core.c
b/drivers/input/mouse/elan_i2c_core.c
index 2f58985..9392a8c 100644
I wonder if we should teach input_mt_report_pointer_emulation() to handle hover properly.
[duson] But, it looks like the hover is not standard function and not all of touchpad support this function,
Even though, we still teach inpu_mt_report_pointer_emulation() to handle this function?
Thanks.
--
Dmitry
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
On Wed, Mar 30, 2016 at 05:49:12PM +0800, DusonLin wrote:
Hello Dmitry,
Please check my response below, thanks.
-----Original Message-----
From: 'Dmitry Torokhov' [mailto:dmitry.torokhov@gmail.com]
Sent: Wednesday, March 30, 2016 10:31 AM
To: DusonLin
Cc: Linux-kernel@vger.kernel.org; linux-input@vger.kernel.org; 'Charles Mooney'; 'jeff'; 'Phoenix'
Subject: Re: [PATCH] Input: Change BTN_TOOL_FINGER falg when HOVER event trigger
Hi Duson,
On Wed, Mar 30, 2016 at 10:02:02AM +0800, DusonLin wrote:
quoted
Only ABS_DISTANCE is not enough for upper OS to distiguish hover
event be triggered from object form faraway to and close touchpad
surface or from object prepare to leave the touchpad surface. We add
BNT_TOOL_FINGER to help it.
Object_at_faraway object_at_hover_area object_touch_touchpad
BTN_TOUCH 0 0 1
BTN_TOOL_FINGER 0 1 1
ABS_DISTANCE 0 1 0
Signed-off by: Duson Lin [off-list ref]
---
drivers/input/mouse/elan_i2c_core.c | 14 +++++++++-----
1 file changed, 9 insertions(+), 5 deletions(-)
diff --git a/drivers/input/mouse/elan_i2c_core.c
b/drivers/input/mouse/elan_i2c_core.c
index 2f58985..9392a8c 100644
I wonder if we should teach input_mt_report_pointer_emulation() to handle hover properly.
[duson] But, it looks like the hover is not standard function and not all of touchpad support this function,
Even though, we still teach inpu_mt_report_pointer_emulation() to handle this function?
Yes, something like this:
If device supports ABS_DISTANCE and does not support ABS_MT_DISTANCE and
ABS_DISTANCE != 0 is reported in current frame and there are no other
contacts then report BTN_TOOL_FINGER.
Thanks.
--
Dmitry
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html