mirror of
https://github.com/swaywm/sway.git
synced 2025-11-20 06:59:46 -05:00
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
This commit is contained in:
parent
212baf2f75
commit
4e6bd53abf
3 changed files with 24 additions and 21 deletions
|
|
@ -105,10 +105,11 @@ The following commands may only be used in the configuration file.
|
|||
*input* <identifier> repeat\_rate <characters per second>
|
||||
Sets the frequency of key repeats once the repeat\_delay has passed.
|
||||
|
||||
*input* <identifier> scroll\_button <button\_identifier>
|
||||
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* <identifier> scroll\_button disable|button[1-3,8,9]|<event-code-or-name>
|
||||
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* <identifier> scroll\_factor <floating point value>
|
||||
Changes the scroll factor for the specified input device. Scroll speed will
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue