Commit
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
9 changed files
with
746 additions
and
432 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.