Function input_sys::libinput_event_tablet_tool_get_button[][src]

pub unsafe extern "C" fn libinput_event_tablet_tool_get_button(
    event: *mut libinput_event_tablet_tool
) -> u32
Expand description

@ingroup event_tablet

Return the button that triggered this event. For events that are not of type @ref LIBINPUT_EVENT_TABLET_TOOL_BUTTON, this function returns 0.

@note It is an application bug to call this function for events other than @ref LIBINPUT_EVENT_TABLET_TOOL_BUTTON.

@param event The libinput tablet tool event @return the button triggering this event

@since 1.2