Function libinput_device_switch_has_switch
pub unsafe extern "C" fn libinput_device_switch_has_switch(
device: *mut libinput_device,
sw: u32,
) -> i32
Expand description
@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.
@since 1.9