mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 15:11:48 -04:00
input: fix the disappearance of ili7807s stylus handwriting
Fingers touch the screen when stylus writing, resulting in the disappearance of handwriting. In DDA mode, app reads the absolute value of pressure. Modify the reporting of pressure value to fix the problem. Change-Id: I4b4c6d45f5099a5b895fb49dc1ac70f8950b7152 Reviewed-on: https://gerrit.mot.com/2497928 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Yeqing Wang <wangyq13@motorola.com> Reviewed-by: Jun Weng <wengjun1@motorola.com> Reviewed-by: Huosheng Liao <liaohs@motorola.com> Submit-Approved: Jira Key
This commit is contained in:
parent
8b7134c9ff
commit
3af870153b
2 changed files with 2 additions and 2 deletions
|
|
@ -108,7 +108,7 @@ void ili_input_register(void)
|
|||
}
|
||||
|
||||
if (MT_PRESSURE)
|
||||
input_set_abs_params(ilits->input, ABS_MT_PRESSURE, 0, 255, 0, 0);
|
||||
input_set_abs_params(ilits->input, ABS_MT_PRESSURE, 0, 1000, 0, 0);
|
||||
|
||||
if (MT_B_TYPE) {
|
||||
#if KERNEL_VERSION(3, 7, 0) <= LINUX_VERSION_CODE
|
||||
|
|
|
|||
|
|
@ -1040,7 +1040,7 @@ void ili_report_ap_mode(u8 *buf, int len)
|
|||
|
||||
if (MT_PRESSURE) {
|
||||
if (TOUCH_WIDTH) {
|
||||
touch_info[ilits->finger].pressure = buf[(4 * i) + 4 + P5_X_DEMO_MODE_PACKET_INFO_LEN];
|
||||
touch_info[ilits->finger].pressure =(buf[(4 * i) + 4 + P5_X_DEMO_MODE_PACKET_INFO_LEN])<<2;
|
||||
} else {
|
||||
touch_info[ilits->finger].pressure = buf[(4 * i) + 4];
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue