From e8d8abfbb50a8992a0aa1a8c1e7fa99b8aae8248 Mon Sep 17 00:00:00 2001 From: Michał Winiarski Date: Tue, 25 Oct 2016 22:03:58 +0200 Subject: Add left_handed support for input devices MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- sway/commands/input.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sway/commands/input.c') 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) { -- cgit v1.2.3