Function input_sys::libinput_device_config_tap_set_drag_enabled[][src]

pub unsafe extern "C" fn libinput_device_config_tap_set_drag_enabled(
    device: *mut libinput_device,
    enable: libinput_config_drag_state
) -> libinput_config_status
Expand description

@ingroup config

Enable or disable tap-and-drag on this device. When enabled, a single-finger tap immediately followed by a finger down results in a button down event, subsequent finger motion thus triggers a drag. The button is released on finger up. See the libinput documentation for more details.

@param device The device to configure @param enable @ref LIBINPUT_CONFIG_DRAG_ENABLED to enable, @ref LIBINPUT_CONFIG_DRAG_DISABLED to disable tap-and-drag

@see libinput_device_config_tap_drag_get_enabled @see libinput_device_config_tap_drag_get_default_enabled

@since 1.2