Please sign in to comment.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[powerkey] Add enablers for configuring touchscreen gestures. Fixes M…
…ER#1537 Traditionally the only touchscreen gesture that has been able to wake the device from suspend has been the double tap. Now there are devices that support more gestures for waking up the device, but there are no means to differentiate / configure actions taken based on the various gestures. MCE already assumes EV_MSC:MSC_GESTURE event with value 4 is double tap. Extend on this and assume that also other gestures get reported in the similar fashion. Move gesture event handling from tklock.c to powerkey.c. Drop support for double tap setting and make gesture actions configurable similarly to what can be done with power key presses. Increase the number of user configurable dbus actions to 10. Tweak the related mcetool options so that instead of N similar but separate options (--set-powerkey-dbus-actionN=args) there is just one that takes action index as the first parameter (--set-powerkey-dbus-action=N,args). Add mcetool --set-touchscreen-gesture-actions options for configuring the gesture actions. Retain the old --set-doubletap-mode as an alias for the sake of backwards compatibility.
- Loading branch information
Showing with 746 additions and 432 deletions.
There are no files selected for viewing
Oops, something went wrong.