sdm845-common: touch: Add single tap to touch screen gestures

Change-Id: I6546ccbaab4e17b25ae57c7f768ec072a5f143f8
This commit is contained in:
Anirudh Gupta 2020-02-18 00:23:01 +05:30 committed by LuK1337
parent 263ce16c5f
commit 833cc7522e
2 changed files with 3 additions and 0 deletions

View file

@ -40,6 +40,7 @@ const std::map<int32_t, TouchscreenGesture::GestureInfo> TouchscreenGesture::kGe
{10, {250, "Letter O", "/proc/touchpanel/letter_o_enable"}},
{11, {248, "Letter S", "/proc/touchpanel/letter_s_enable"}},
{12, {246, "Letter W", "/proc/touchpanel/letter_w_enable"}},
{13, {67, "Single Tap", "/proc/touchpanel/single_tap_enable"}},
};
Return<void> TouchscreenGesture::getSupportedGestures(getSupportedGestures_cb resultCb) {

View file

@ -12,6 +12,7 @@ on boot
chmod 0660 /proc/touchpanel/right_swipe_enable
chmod 0660 /proc/touchpanel/up_arrow_enable
chmod 0660 /proc/touchpanel/up_swipe_enable
chmod 0660 /proc/touchpanel/single_tap_enable
chown system system /proc/touchpanel/double_swipe_enable
chown system system /proc/touchpanel/down_arrow_enable
chown system system /proc/touchpanel/down_swipe_enable
@ -25,6 +26,7 @@ on boot
chown system system /proc/touchpanel/right_swipe_enable
chown system system /proc/touchpanel/up_arrow_enable
chown system system /proc/touchpanel/up_swipe_enable
chown system system /proc/touchpanel/single_tap_enable
service touch-hal-1-0 /system/bin/hw/lineage.touch@1.0-service.oneplus_sdm845
class hal