Function input_sys::libinput_event_tablet_pad_get_mode_group [] [src]

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. See @ref tablet-pad-modes for details.

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