Function libinput_device_config_middle_emulation_set_enabled
pub unsafe extern "C" fn libinput_device_config_middle_emulation_set_enabled(
device: *mut libinput_device,
enable: u32,
) -> u32
Expand description
@ingroup config
Enable or disable middle button emulation on this device. When enabled, a simultaneous press of the left and right button generates a middle mouse button event. Releasing the buttons generates a middle mouse button release, the left and right button events are discarded otherwise.
See the libinput documentation for more details.
@param device The device to configure @param enable @ref LIBINPUT_CONFIG_MIDDLE_EMULATION_DISABLED to disable, @ref LIBINPUT_CONFIG_MIDDLE_EMULATION_ENABLED To enable middle button emulation.
@return A config status code. Disabling middle button emulation on a device that does not support middle button emulation always succeeds.
@see libinput_device_config_middle_emulation_is_available @see libinput_device_config_middle_emulation_get_enabled @see libinput_device_config_middle_emulation_get_default_enabled