Function input_sys::libinput_device_config_tap_set_enabled [] [src]

pub unsafe extern "C" fn libinput_device_config_tap_set_enabled(
    device: *mut libinput_device,
    enable: libinput_config_tap_state
) -> libinput_config_status

@ingroup config

Enable or disable tap-to-click on this device, with a default mapping of 1, 2, 3 finger tap mapping to left, right, middle click, respectively. Tapping is limited by the number of simultaneous touches supported by the device, see libinput_device_config_tap_get_finger_count().

@param device The device to configure @param enable @ref LIBINPUT_CONFIG_TAP_ENABLED to enable tapping or @ref LIBINPUT_CONFIG_TAP_DISABLED to disable tapping

@return A config status code. Disabling tapping on a device that does not support tapping always succeeds.

@see libinput_device_config_tap_get_finger_count @see libinput_device_config_tap_get_enabled @see libinput_device_config_tap_get_default_enabled