Function libinput_tablet_tool_has_button
pub unsafe extern "C" fn libinput_tablet_tool_has_button(
tool: *mut libinput_tablet_tool,
code: u32,
) -> i32
Expand description
@ingroup event_tablet
Check if a tablet tool has a button with the passed-in code (see linux/input.h).
@param tool A tablet tool @param code button code to check for
@return 1 if the tool supports this button code, 0 if it does not
@since 1.2