Function libinput_device_pointer_has_button
pub unsafe extern "C" fn libinput_device_pointer_has_button(
device: *mut libinput_device,
code: u32,
) -> i32
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.