[][src]Function input_sys::libinput_event_tablet_pad_get_key

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

@ingroup event_tablet_pad

Return the key code that triggered this event, e.g. KEY_CONTROLPANEL. The list of key codes is defined in linux/input-event-codes.h.

For events that are not of type @ref LIBINPUT_EVENT_TABLET_PAD_KEY, this function returns 0.

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

@param event The libinput tablet pad event @return the key code triggering this event

@since 1.15