mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-15 01:01:56 -04:00
Change double tap interval for Egis FPS
Change double tap interval from first finger up to second finger up
to first finger up to second finger down
NO_PROP_NEEDED: only need for nairo
Change-Id: Id97ad5a62c22df358f037f4314f4abb992522bd6
Reviewed-on: https://gerrit.mot.com/1656842
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianlin Nie <niejl1@motorola.com>
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1659068
Reviewed-by: Yan Zhang <zhangy26@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
This commit is contained in:
parent
7434f7fe43
commit
73318b8fb7
1 changed files with 2 additions and 2 deletions
|
|
@ -421,7 +421,7 @@ void translated_command_converter(char cmd, struct etspi_data *etspi)
|
|||
g_KeyEventRaised = true;
|
||||
pr_info("Egis : g_SingleClick %u tap interval =%u double tap interval = %u time= %u",
|
||||
g_SingleClick, jiffies_to_msecs(jiffies - g_SingleClickJiffies),
|
||||
jiffies_to_msecs(jiffies - g_DoubleClickJiffies), jiffies_to_msecs(jiffies));
|
||||
jiffies_to_msecs(g_SingleClickJiffies - g_DoubleClickJiffies), jiffies_to_msecs(jiffies));
|
||||
#if ENABLE_TRANSLATED_SINGLE_CLICK || ENABLE_TRANSLATED_DOUBLE_CLICK
|
||||
if ((jiffies - g_SingleClickJiffies) < (HZ * SINGLECLICK_INTERVAL / 1000)) {
|
||||
/* Click event */
|
||||
|
|
@ -436,7 +436,7 @@ void translated_command_converter(char cmd, struct etspi_data *etspi)
|
|||
#endif
|
||||
#if ENABLE_TRANSLATED_DOUBLE_CLICK
|
||||
if (g_SingleClick >= 2) {
|
||||
if ((jiffies - g_DoubleClickJiffies) < (HZ * (SINGLECLICK_INTERVAL+DOUBLECLICK_INTERVAL) / 1000)) {
|
||||
if ((g_SingleClickJiffies - g_DoubleClickJiffies) < (HZ * DOUBLECLICK_INTERVAL / 1000)) {
|
||||
/* Double click event */
|
||||
send_key_event(etspi, KEYEVENT_DOUBLECLICK, KEYEVENT_DOUBLECLICK_ACTION);
|
||||
g_SingleClick = 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue