Function input_sys::libinput_device_switch_has_switch [] [src]

pub unsafe extern "C" fn libinput_device_switch_has_switch(
    device: *mut libinput_device,
    sw: libinput_switch
) -> c_int

@ingroup device

Check if a @ref LIBINPUT_DEVICE_CAP_SWITCH device has a switch of the given type.

@param device A current input device @param sw Switch to check for

@return 1 if the device supports this switch, 0 if it does not, -1 on error.