Function input_sys::libinput_event_tablet_pad_get_button_number[][src]

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

@ingroup event_tablet_pad

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

Note that the number returned is a generic sequential button number and not a semantic button code as defined in linux/input.h. See the libinput documentation for more details.

@note It is an application bug to call this function for events other than @ref LIBINPUT_EVENT_TABLET_PAD_BUTTON. For other events, this function returns 0.

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

@since 1.3