aboutsummaryrefslogtreecommitdiffstats
path: root/sway/sway-input.5.scd
diff options
context:
space:
mode:
authorLibravatar Brian Ashworth <bosrsf04@gmail.com>2019-01-10 11:47:34 -0500
committerLibravatar Brian Ashworth <bosrsf04@gmail.com>2019-01-10 11:47:34 -0500
commitaa1c838f9733f9b5e90e8267a10e455790cd2642 (patch)
treecf88e53cff1e0d49a52df4d5a38ad5d1e1d7e959 /sway/sway-input.5.scd
parentMerge pull request #3400 from ianyfan/config-brace (diff)
downloadsway-aa1c838f9733f9b5e90e8267a10e455790cd2642.tar.gz
sway-aa1c838f9733f9b5e90e8267a10e455790cd2642.tar.zst
sway-aa1c838f9733f9b5e90e8267a10e455790cd2642.zip
seat_cmd_cursor: utilize mouse button helpers
This modifies `seat_cmd_cursor` to utilize `get_mouse_button` when parsing mouse buttons for the `press` and `release` operations. All x11 buttons, button event names, and button event codes are supported. For x11 axis buttons, `dispatch_cursor_axis` is used instead of `dispatch_cursor_button`. However the `press`/`release` state is ignored and the either axis event is processed. This also removes support for `left` and `right` in favor of `BTN_LEFT` and `BTN_RIGHT`.
Diffstat (limited to 'sway/sway-input.5.scd')
-rw-r--r--sway/sway-input.5.scd13
1 files changed, 13 insertions, 0 deletions
diff --git a/sway/sway-input.5.scd b/sway/sway-input.5.scd
index 820194a9..044057f2 100644
--- a/sway/sway-input.5.scd
+++ b/sway/sway-input.5.scd
@@ -141,6 +141,19 @@ in their own "seat").
141 Attach an input device to this seat by its input identifier. A special 141 Attach an input device to this seat by its input identifier. A special
142 value of "\*" will attach all devices to the seat. 142 value of "\*" will attach all devices to the seat.
143 143
144*seat* <seat> cursor move|set <x> <y>
145 Move specified seat's cursor relative to current position or wrap to
146 absolute coordinates (with respect to the global coordinate space).
147 Specifying either value as 0 will not update that coordinate.
148
149*seat* <seat> cursor press|release button[1-9]|<event-name-or-code>
150 Simulate pressing (or releasing) the specified mouse button on the
151 specified seat. The button can either be provided as a button event name or
152 event code, which can be obtained from `libinput debug-events`, or as an x11
153 mouse button (button[1-9]). If using button[4-7], which map to axes, an axis
154 event will be simulated, however _press_ and _release_ will be ignored and
155 both will occur.
156
144*seat* <name> fallback true|false 157*seat* <name> fallback true|false
145 Set this seat as the fallback seat. A fallback seat will attach any device 158 Set this seat as the fallback seat. A fallback seat will attach any device
146 not explicitly attached to another seat (similar to a "default" seat). 159 not explicitly attached to another seat (similar to a "default" seat).