Function input_sys::libinput_tablet_pad_mode_group_get_mode [] [src]

pub unsafe extern "C" fn libinput_tablet_pad_mode_group_get_mode(
    group: *mut libinput_tablet_pad_mode_group
) -> c_uint

@ingroup tablet_pad_modes

Return the current mode this mode group is in. Note that the returned mode is the mode valid as of completing the last libinput_dispatch(). The returned mode may thus be different than the mode returned by libinput_event_tablet_pad_get_mode().

For example, if the mode was toggled three times between the call to libinput_dispatch(), this function returns the third mode but the events in the event queue will return the modes 1, 2 and 3, respectively.

@param group A previously obtained mode group @return the numeric index of the current mode in this group, starting at 0

@see libinput_event_tablet_pad_get_mode