From 4e6bd53abf900020bbc38ceddb7b7505be4fb96d Mon Sep 17 00:00:00 2001 From: Brian Ashworth Date: Thu, 10 Jan 2019 12:45:52 -0500 Subject: 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 --- sway/sway-input.5.scd | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'sway/sway-input.5.scd') 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. *input* repeat\_rate Sets the frequency of key repeats once the repeat\_delay has passed. -*input* scroll\_button - Sets button used for scroll\_method on\_button\_down. The button identifier - can be obtained from `libinput debug-events`. - If set to 0, it disables the scroll\_button on\_button\_down. +*input* scroll\_button disable|button[1-3,8,9]| + Sets the button used for scroll\_method on\_button\_down. The button can + be given as an event name or code, which can be obtained from `libinput + debug-events`, or as a x11 mouse button (button[1-3,8,9]). If set to + _disable_, it disables the scroll\_method on\_button\_down. *input* scroll\_factor Changes the scroll factor for the specified input device. Scroll speed will -- cgit v1.2.3-54-g00ecf