[][src]Function input_sys::libinput_device_config_send_events_set_mode

pub unsafe extern "C" fn libinput_device_config_send_events_set_mode(
    device: *mut libinput_device,
    mode: u32
) -> libinput_config_status

@ingroup config

Set the send-event mode for this device. The mode defines when the device processes and sends events to the caller.

The selected mode may not take effect immediately. Events already received and processed from this device are unaffected and will be passed to the caller on the next call to libinput_get_event().

If the mode is a bitmask of @ref libinput_config_send_events_mode, the device may wait for or generate events until it is in a neutral state. For example, this may include waiting for or generating button release events.

If the device is already suspended, this function does nothing and returns success. Changing the send-event mode on a device that has been removed is permitted.

@param device The device to configure @param mode A bitmask of send-events modes

@return A config status code.

@see libinput_device_config_send_events_get_modes @see libinput_device_config_send_events_get_mode @see libinput_device_config_send_events_get_default_mode