[][src]Function input_sys::libinput_event_tablet_pad_get_mode_group

pub unsafe extern "C" fn libinput_event_tablet_pad_get_mode_group(
    event: *mut libinput_event_tablet_pad
) -> *mut libinput_tablet_pad_mode_group

@ingroup event_tablet_pad

Returns the mode group that the button, ring, or strip that triggered this event is considered in. The mode is a virtual grouping of functionality, usually based on some visual feedback like LEDs on the pad.

@note Pad keys are not part of a mode group. It is an application bug to call this function for @ref LIBINPUT_EVENT_TABLET_PAD_KEY.

The returned mode group is not refcounted and may become invalid after the next call to libinput. Use libinput_tablet_pad_mode_group_ref() and libinput_tablet_pad_mode_group_unref() to continue using the handle outside of the immediate scope.

@param event The libinput tablet pad event @return the mode group of the button, ring or strip that caused this event

@see libinput_device_tablet_pad_get_mode_group

@since 1.4