summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSuper Liu <supercjliu@google.com>2020-04-24 09:16:53 +0800
committerSuper Liu <supercjliu@google.com>2020-04-24 09:24:15 +0000
commit8821b6862d89711a725285fc8445fbe7c1d0870e (patch)
treee3ac628d8727c2bfe6a64f4e02a4a1f3da810991
parentd6b0923681b7a99db939fd24c0cb99bacdb0e6fb (diff)
downloadsec_touch-8821b6862d89711a725285fc8445fbe7c1d0870e.tar.gz
sec_touch: set MT_TOOL_FINGER only to force as touchscreen input source
Currently, if setup MT_TOOL_TYPE range from MT_TOOL_FINGER to MT_TOOL_MAX, it will become AINPUT_SOURCE_STYLUS as input source for Android. Bug: 154432814 Change-Id: I242f7d779875a7bb06463d084ac45c5c27185b1a Signed-off-by: Super Liu <supercjliu@google.com>
-rw-r--r--sec_ts.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sec_ts.c b/sec_ts.c
index 2bbef24..a0791e8 100644
--- a/sec_ts.c
+++ b/sec_ts.c
@@ -3022,8 +3022,8 @@ static void sec_ts_set_input_prop(struct sec_ts_data *ts,
0, 0);
input_set_abs_params(dev, ABS_MT_TOUCH_MAJOR, 0, 255, 0, 0);
input_set_abs_params(dev, ABS_MT_TOUCH_MINOR, 0, 255, 0, 0);
- input_set_abs_params(dev, ABS_MT_TOOL_TYPE, MT_TOOL_FINGER, MT_TOOL_MAX,
- 0, 0);
+ input_set_abs_params(dev, ABS_MT_TOOL_TYPE, MT_TOOL_FINGER,
+ MT_TOOL_FINGER, 0, 0);
#ifdef ABS_MT_CUSTOM
input_set_abs_params(dev, ABS_MT_CUSTOM, 0, 0xFFFF, 0, 0);
#endif