feat: add libinput scroll_button
This MR adds a option to set a button for when scroll_on_button_down is enabled as the scroll method. The user can define a different button to the enable the scroll event. By default the middle mouse button (274) is used, but with the `scroll_button` setting any other mouse button can be set, like the right mouse button (273) or a lateral button like back and forward buttons.
This commit is contained in:
@@ -134,6 +134,7 @@ LIBINPUT_CONFIG_SCROLL_EDGE
|
||||
LIBINPUT_CONFIG_SCROLL_ON_BUTTON_DOWN
|
||||
*/
|
||||
enum libinput_config_scroll_method scroll_method = LIBINPUT_CONFIG_SCROLL_2FG;
|
||||
unsigned int scroll_button = 274;
|
||||
|
||||
/* You can choose between:
|
||||
LIBINPUT_CONFIG_CLICK_METHOD_NONE
|
||||
|
||||
Reference in New Issue
Block a user