Unify two finger swipe gestures into one [2/4]

Change-Id: I768b1cfe924e5be41e6bca2917b32260ad1685be
Signed-off-by: Carlo Savignano <carlosavignano@aospa.co>
This commit is contained in:
Carlo Savignano 2016-04-24 23:33:34 +08:00
parent b3df3fbe2f
commit 066893623a
2 changed files with 5 additions and 16 deletions

View File

@ -96,12 +96,8 @@ ifneq ($(TARGET_ONE_FINGER_SWIPE_LEFT_NODE),)
LOCAL_CFLAGS += -DONE_FINGER_SWIPE_LEFT_NODE=\"$(TARGET_ONE_FINGER_SWIPE_LEFT_NODE)\"
endif
ifneq ($(TARGET_TWO_FINGER_SWIPE_UP_NODE),)
LOCAL_CFLAGS += -DTWO_FINGER_SWIPE_UP_NODE=\"$(TARGET_TWO_FINGER_SWIPE_UP_NODE)\"
endif
ifneq ($(TARGET_TWO_FINGER_SWIPE_DOWN_NODE),)
LOCAL_CFLAGS += -DTWO_FINGER_SWIPE_DOWN_NODE=\"$(TARGET_TWO_FINGER_SWIPE_DOWN_NODE)\"
ifneq ($(TARGET_TWO_FINGER_SWIPE_NODE),)
LOCAL_CFLAGS += -DTWO_FINGER_SWIPE_NODE=\"$(TARGET_TWO_FINGER_SWIPE_NODE)\"
endif
ifeq ($(TARGET_POWER_SET_FEATURE_LIB),)

View File

@ -119,16 +119,9 @@ void set_device_specific_feature(struct power_module *module __unused,
}
#endif
#ifdef TWO_FINGER_SWIPE_UP_NODE
if (feature == POWER_FEATURE_TWO_FINGER_SWIPE_UP) {
sysfs_write(TWO_FINGER_SWIPE_UP_NODE, tmp_str);
return;
}
#endif
#ifdef TWO_FINGER_SWIPE_DOWN_NODE
if (feature == POWER_FEATURE_TWO_FINGER_SWIPE_DOWN) {
sysfs_write(TWO_FINGER_SWIPE_DOWN_NODE, tmp_str);
#ifdef TWO_FINGER_SWIPE_NODE
if (feature == POWER_FEATURE_TWO_FINGER_SWIPE) {
sysfs_write(TWO_FINGER_SWIPE_NODE, tmp_str);
return;
}
#endif