Function libinput_device_config_scroll_set_method
pub unsafe extern "C" fn libinput_device_config_scroll_set_method(
device: *mut libinput_device,
method: u32,
) -> u32
Expand description
@ingroup config
Set the scroll method for this device. The method defines when to generate scroll axis events instead of pointer motion events.
@note Setting @ref LIBINPUT_CONFIG_SCROLL_ON_BUTTON_DOWN enables the scroll method, but scrolling is only activated when the configured button is held down. If no button is set, i.e. libinput_device_config_scroll_get_button() returns 0, scrolling cannot activate.
@param device The device to configure @param method The scroll method for this device.
@return A config status code.
@see libinput_device_config_scroll_get_methods @see libinput_device_config_scroll_get_method @see libinput_device_config_scroll_get_default_method @see libinput_device_config_scroll_set_button @see libinput_device_config_scroll_get_button @see libinput_device_config_scroll_get_default_button