aboutsummaryrefslogtreecommitdiff
path: root/include
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 /include
parent47fd53812b7cf14734be96484e4e3719f196437f (diff)
downloadsway-e8d8abfbb50a8992a0aa1a8c1e7fa99b8aae8248.tar.xz
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 'include')
-rw-r--r--include/sway/commands.h1
-rw-r--r--include/sway/config.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/include/sway/commands.h b/include/sway/commands.h
index fe67c58c..a46f41a3 100644
--- a/include/sway/commands.h
+++ b/include/sway/commands.h
@@ -173,6 +173,7 @@ sway_cmd input_cmd_click_method;
sway_cmd input_cmd_drag_lock;
sway_cmd input_cmd_dwt;
sway_cmd input_cmd_events;
+sway_cmd input_cmd_left_handed;
sway_cmd input_cmd_middle_emulation;
sway_cmd input_cmd_natural_scroll;
sway_cmd input_cmd_pointer_accel;
diff --git a/include/sway/config.h b/include/sway/config.h
index b29fe6c5..a14b7e48 100644
--- a/include/sway/config.h
+++ b/include/sway/config.h
@@ -60,6 +60,7 @@ struct input_config {
int click_method;
int drag_lock;
int dwt;
+ int left_handed;
int middle_emulation;
int natural_scroll;
float pointer_accel;