Function input_sys::libinput_device_config_dwt_set_enabled[][src]

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

@ingroup config

Enable or disable the disable-while-typing feature. When enabled, the device will be disabled while typing and for a short period after. See the libinput documentation for details.

@note Enabling or disabling disable-while-typing may not take effect immediately.

@param device The device to configure @param enable @ref LIBINPUT_CONFIG_DWT_DISABLED to disable disable-while-typing, @ref LIBINPUT_CONFIG_DWT_ENABLED to enable

@return A config status code. Disabling disable-while-typing on a device that does not support the feature always succeeds.

@see libinput_device_config_dwt_is_available @see libinput_device_config_dwt_get_enabled @see libinput_device_config_dwt_get_default_enabled