Function libinput_device_config_middle_emulation_get_default_enabled
pub unsafe extern "C" fn libinput_device_config_middle_emulation_get_default_enabled(
device: *mut libinput_device,
) -> u32
Expand description
@ingroup config
Check if configurable middle button emulation is enabled by default on this device. See libinput_device_config_middle_emulation_set_enabled() for more details.
If the device does not have configurable middle button emulation, this function returns @ref LIBINPUT_CONFIG_MIDDLE_EMULATION_DISABLED.
@note Some devices provide middle mouse button emulation but do not allow enabling/disabling that emulation. These devices always return @ref LIBINPUT_CONFIG_MIDDLE_EMULATION_DISABLED.
@param device The device to configure @return @ref LIBINPUT_CONFIG_MIDDLE_EMULATION_DISABLED If disabled or not available, @ref LIBINPUT_CONFIG_MIDDLE_EMULATION_ENABLED if enabled.
@see libinput_device_config_middle_emulation_is_available @see libinput_device_config_middle_emulation_set_enabled @see libinput_device_config_middle_emulation_get_enabled