aboutsummaryrefslogtreecommitdiff
path: root/sway/commands/input.c
diff options
context:
space:
mode:
authorMichał Winiarski <knr@hardline.pl>2016-10-25 22:03:58 +0200
committerMichał Winiarski <knr@hardline.pl>2016-10-25 22:06:23 +0200
commite8d8abfbb50a8992a0aa1a8c1e7fa99b8aae8248 (patch)
tree6becd3422c2705199ae5e639020f32a9b9f334c9 /sway/commands/input.c
parent47fd53812b7cf14734be96484e4e3719f196437f (diff)
Add left_handed support for input devices
Some users may want to switch buttons on their input devices, turns out libinput already supports it. Let's add a support for it in our config. Signed-off-by: Michał Winiarski <knr@hardline.pl>
Diffstat (limited to 'sway/commands/input.c')
-rw-r--r--sway/commands/input.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sway/commands/input.c b/sway/commands/input.c
index 9c9d7600..f584bb77 100644
--- a/sway/commands/input.c
+++ b/sway/commands/input.c
@@ -31,6 +31,8 @@ struct cmd_results *cmd_input(int argc, char **argv) {
res = input_cmd_dwt(argc_new, argv_new);
} else if (strcasecmp("events", argv[1]) == 0) {
res = input_cmd_events(argc_new, argv_new);
+ } else if (strcasecmp("left_handed", argv[1]) == 0) {
+ res = input_cmd_left_handed(argc_new, argv_new);
} else if (strcasecmp("middle_emulation", argv[1]) == 0) {
res = input_cmd_middle_emulation(argc_new, argv_new);
} else if (strcasecmp("natural_scroll", argv[1]) == 0) {