input: Add fully configurable trackpad gestures (#11490)
Adds configurable trackpad gestures
This commit is contained in:
parent
378e130f14
commit
81bf4eccba
60 changed files with 2518 additions and 940 deletions
|
|
@ -763,24 +763,6 @@ inline static const std::vector<SConfigOptionDescription> CONFIG_OPTIONS = {
|
|||
* gestures:
|
||||
*/
|
||||
|
||||
SConfigOptionDescription{
|
||||
.value = "gestures:workspace_swipe",
|
||||
.description = "enable workspace swipe gesture on touchpad",
|
||||
.type = CONFIG_OPTION_BOOL,
|
||||
.data = SConfigOptionDescription::SBoolData{false},
|
||||
},
|
||||
SConfigOptionDescription{
|
||||
.value = "gestures:workspace_swipe_fingers",
|
||||
.description = "how many fingers for the touchpad gesture",
|
||||
.type = CONFIG_OPTION_INT,
|
||||
.data = SConfigOptionDescription::SRangeData{3, 0, 5}, //##TODO RANGE?
|
||||
},
|
||||
SConfigOptionDescription{
|
||||
.value = "gestures:workspace_swipe_min_fingers",
|
||||
.description = "if enabled, workspace_swipe_fingers is considered the minimum number of fingers to swipe",
|
||||
.type = CONFIG_OPTION_BOOL,
|
||||
.data = SConfigOptionDescription::SBoolData{false},
|
||||
},
|
||||
SConfigOptionDescription{
|
||||
.value = "gestures:workspace_swipe_distance",
|
||||
.description = "in px, the distance of the touchpad gesture",
|
||||
|
|
@ -847,6 +829,12 @@ inline static const std::vector<SConfigOptionDescription> CONFIG_OPTIONS = {
|
|||
.type = CONFIG_OPTION_BOOL,
|
||||
.data = SConfigOptionDescription::SBoolData{false},
|
||||
},
|
||||
SConfigOptionDescription{
|
||||
.value = "gestures:close_max_timeout",
|
||||
.description = "Timeout for closing windows with the close gesture, in ms.",
|
||||
.type = CONFIG_OPTION_INT,
|
||||
.data = SConfigOptionDescription::SRangeData{1000, 10, 2000},
|
||||
},
|
||||
|
||||
/*
|
||||
* group:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue