Function input_sys::libinput_tablet_tool_has_button [] [src]

pub unsafe extern fn libinput_tablet_tool_has_button(tool: *mut libinput_tablet_tool,
                                                     code: u32)
                                                     -> c_int

@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