unify touchpad gesture APIs
Commit 1: use the same functions for real-time and non-real-time gestures
Commit 2: use the global direction enums
Commit 1: use the same functions for real-time and non-real-time gestures
Commit 2: use the global direction enums