Function libinput_device_tablet_pad_get_num_buttons

pub unsafe extern "C" fn libinput_device_tablet_pad_get_num_buttons(
    device: *mut libinput_device,
) -> i32
Expand description

@ingroup device

Return the number of buttons on a device with the @ref LIBINPUT_DEVICE_CAP_TABLET_PAD capability. Buttons on a pad device are numbered sequentially, see the libinput documentation for details.

@param device A current input device

@return The number of buttons supported by the device.

@since 1.3