Function input_sys::libinput_device_config_click_set_method[][src]

pub unsafe extern "C" fn libinput_device_config_click_set_method(
    device: *mut libinput_device,
    method: libinput_config_click_method
) -> libinput_config_status
Expand description

@ingroup config

Set the button click method for this device. The button click method defines when to generate software-emulated buttons, usually on a device that does not have a specific physical button available.

@note The selected click method may not take effect immediately. The device may require changing to a neutral state first before activating the new method.

@param device The device to configure @param method The button click method

@return A config status code

@see libinput_device_config_click_get_methods @see libinput_device_config_click_get_method @see libinput_device_config_click_get_default_method