[][src]Function input_sys::libinput_tablet_pad_mode_group_button_is_toggle

pub unsafe extern "C" fn libinput_tablet_pad_mode_group_button_is_toggle(
    group: *mut libinput_tablet_pad_mode_group,
    button: c_uint
) -> c_int

@ingroup tablet_pad_modes

The toggle button in a mode group is the button assigned to cycle to or directly assign a new mode when pressed. Not all devices have a toggle button and some devices may have more than one toggle button. For example, the Wacom Cintiq 24HD has six toggle buttons in two groups, each directly selecting one of the three modes per group.

Devices without mode switching capabilities return false for every button.

@param group A previously obtained mode group @param button A button index, starting at 0 @retval non-zero if the button is a mode toggle button for this group, or zero otherwise

@since 1.4