diff options
author | 2016-10-25 22:03:58 +0200 | |
---|---|---|
committer | 2016-10-25 22:06:23 +0200 | |
commit | e8d8abfbb50a8992a0aa1a8c1e7fa99b8aae8248 (patch) | |
tree | 6becd3422c2705199ae5e639020f32a9b9f334c9 /include/sway | |
parent | Merge pull request #958 from Hummer12007/pango (diff) | |
download | sway-e8d8abfbb50a8992a0aa1a8c1e7fa99b8aae8248.tar.gz sway-e8d8abfbb50a8992a0aa1a8c1e7fa99b8aae8248.tar.zst sway-e8d8abfbb50a8992a0aa1a8c1e7fa99b8aae8248.zip |
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/sway')
-rw-r--r-- | include/sway/commands.h | 1 | ||||
-rw-r--r-- | include/sway/config.h | 1 |
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; | |||
173 | sway_cmd input_cmd_drag_lock; | 173 | sway_cmd input_cmd_drag_lock; |
174 | sway_cmd input_cmd_dwt; | 174 | sway_cmd input_cmd_dwt; |
175 | sway_cmd input_cmd_events; | 175 | sway_cmd input_cmd_events; |
176 | sway_cmd input_cmd_left_handed; | ||
176 | sway_cmd input_cmd_middle_emulation; | 177 | sway_cmd input_cmd_middle_emulation; |
177 | sway_cmd input_cmd_natural_scroll; | 178 | sway_cmd input_cmd_natural_scroll; |
178 | sway_cmd input_cmd_pointer_accel; | 179 | 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 { | |||
60 | int click_method; | 60 | int click_method; |
61 | int drag_lock; | 61 | int drag_lock; |
62 | int dwt; | 62 | int dwt; |
63 | int left_handed; | ||
63 | int middle_emulation; | 64 | int middle_emulation; |
64 | int natural_scroll; | 65 | int natural_scroll; |
65 | float pointer_accel; | 66 | float pointer_accel; |