Add more one finger swipe gestures [2/4]

Change-Id: I00aa60407b6eab60a7cae143db1b0ab1ead1a686
Signed-off-by: Carlo Savignano <carlosavignano@aospa.co>
This commit is contained in:
Carlo Savignano 2016-04-24 15:39:30 +08:00
parent 446ff54a57
commit 2f18635486
1 changed files with 14 additions and 0 deletions

View File

@ -84,6 +84,20 @@ void set_device_specific_feature(struct power_module *module __unused,
} }
#endif #endif
#ifdef ONE_FINGER_SWIPE_UP_NODE
if (feature == POWER_FEATURE_ONE_FINGER_SWIPE_UP) {
sysfs_write(ONE_FINGER_SWIPE_UP_NODE, tmp_str);
return;
}
#endif
#ifdef ONE_FINGER_SWIPE_RIGHT_NODE
if (feature == POWER_FEATURE_TARGET_ONE_FINGER_SWIPE_RIGHT) {
sysfs_write(ONE_FINGER_SWIPE_RIGHT_NODE, tmp_str);
return;
}
#endif
#ifdef ONE_FINGER_SWIPE_DOWN_NODE #ifdef ONE_FINGER_SWIPE_DOWN_NODE
if (feature == POWER_FEATURE_ONE_FINGER_SWIPE_DOWN) { if (feature == POWER_FEATURE_ONE_FINGER_SWIPE_DOWN) {
sysfs_write(ONE_FINGER_SWIPE_DOWN_NODE, tmp_str); sysfs_write(ONE_FINGER_SWIPE_DOWN_NODE, tmp_str);