Function input_sys::libinput_device_config_middle_emulation_get_enabled [] [src]

pub unsafe extern "C" fn libinput_device_config_middle_emulation_get_enabled(
    device: *mut libinput_device
) -> libinput_config_middle_emulation_state

@ingroup config

Check if configurable middle button emulation is enabled on this device. See @ref middle_button_emulation for 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/configurable, @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_default_enabled