diff options
author | Brian Ashworth <bosrsf04@gmail.com> | 2019-01-10 12:45:52 -0500 |
---|---|---|
committer | Brian Ashworth <bosrsf04@gmail.com> | 2019-01-10 12:45:52 -0500 |
commit | 4e6bd53abf900020bbc38ceddb7b7505be4fb96d (patch) | |
tree | be52327cbf9f415527143cfe36597f52fa0f9f63 /sway/sway-input.5.scd | |
parent | Merge pull request #3400 from ianyfan/config-brace (diff) | |
download | sway-4e6bd53abf900020bbc38ceddb7b7505be4fb96d.tar.gz sway-4e6bd53abf900020bbc38ceddb7b7505be4fb96d.tar.zst sway-4e6bd53abf900020bbc38ceddb7b7505be4fb96d.zip |
input_cmd_scroll_button: utilize mouse btn helpers
This modifies `input_cmd_scroll_button` to utilize the mouse button
helper `get_mouse_button` when parsing the button. x11 axis buttons are
not supported with this command and `CMD_INVALID` will be returned, but
all other x11 buttons, button event names, and button event codes should
be working
Diffstat (limited to 'sway/sway-input.5.scd')
-rw-r--r-- | sway/sway-input.5.scd | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sway/sway-input.5.scd b/sway/sway-input.5.scd index 820194a9..1b2255b8 100644 --- a/sway/sway-input.5.scd +++ b/sway/sway-input.5.scd | |||
@@ -105,10 +105,11 @@ The following commands may only be used in the configuration file. | |||
105 | *input* <identifier> repeat\_rate <characters per second> | 105 | *input* <identifier> repeat\_rate <characters per second> |
106 | Sets the frequency of key repeats once the repeat\_delay has passed. | 106 | Sets the frequency of key repeats once the repeat\_delay has passed. |
107 | 107 | ||
108 | *input* <identifier> scroll\_button <button\_identifier> | 108 | *input* <identifier> scroll\_button disable|button[1-3,8,9]|<event-code-or-name> |
109 | Sets button used for scroll\_method on\_button\_down. The button identifier | 109 | Sets the button used for scroll\_method on\_button\_down. The button can |
110 | can be obtained from `libinput debug-events`. | 110 | be given as an event name or code, which can be obtained from `libinput |
111 | If set to 0, it disables the scroll\_button on\_button\_down. | 111 | debug-events`, or as a x11 mouse button (button[1-3,8,9]). If set to |
112 | _disable_, it disables the scroll\_method on\_button\_down. | ||
112 | 113 | ||
113 | *input* <identifier> scroll\_factor <floating point value> | 114 | *input* <identifier> scroll\_factor <floating point value> |
114 | Changes the scroll factor for the specified input device. Scroll speed will | 115 | Changes the scroll factor for the specified input device. Scroll speed will |