Function libinput_device_tablet_pad_has_key
pub unsafe extern "C" fn libinput_device_tablet_pad_has_key(
device: *mut libinput_device,
code: u32,
) -> i32
Expand description
@ingroup device
Check if a @ref LIBINPUT_DEVICE_CAP_TABLET_PAD device has a key with the given code (see linux/input-event-codes.h).
@param device A current input device @param code Key code to check for, e.g. KEY_ESC
@return 1 if the device supports this key code, 0 if it does not, -1 on error.
@since 1.15