Function input_sys::libinput_device_pointer_has_button[][src]

pub unsafe extern "C" fn libinput_device_pointer_has_button(
    device: *mut libinput_device,
    code: u32
) -> c_int
Expand description

@ingroup device

Check if a @ref LIBINPUT_DEVICE_CAP_POINTER device has a button with the given code (see linux/input-event-codes.h).

@param device A current input device @param code Button code to check for, e.g. BTN_LEFT

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