diff options
author | Super Liu <supercjliu@google.com> | 2020-04-24 09:16:53 +0800 |
---|---|---|
committer | Super Liu <supercjliu@google.com> | 2020-04-24 09:24:15 +0000 |
commit | 8821b6862d89711a725285fc8445fbe7c1d0870e (patch) | |
tree | e3ac628d8727c2bfe6a64f4e02a4a1f3da810991 | |
parent | d6b0923681b7a99db939fd24c0cb99bacdb0e6fb (diff) | |
download | sec_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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |