Function libinput_device_config_scroll_set_button_lock
pub unsafe extern "C" fn libinput_device_config_scroll_set_button_lock(
device: *mut libinput_device,
state: u32,
) -> u32
Expand description
@ingroup config
Set the scroll button lock. If the state is @ref LIBINPUT_CONFIG_SCROLL_BUTTON_LOCK_DISABLED, the button must physically be held down for button scrolling to work. If the state is @ref LIBINPUT_CONFIG_SCROLL_BUTTON_LOCK_ENABLED, the button is considered logically down after the first press and release sequence, and logically up after the second press and release sequence.
@param device The device to configure @param state The state to set the scroll button lock to
@return A config status code. Disabling the scroll button lock on device that does not support button scrolling always succeeds.
@see libinput_device_config_scroll_set_button @see libinput_device_config_scroll_get_button @see libinput_device_config_scroll_get_default_button