Function input_sys::libinput_device_tablet_pad_get_num_buttons [] [src]

pub unsafe extern "C" fn libinput_device_tablet_pad_get_num_buttons(
    device: *mut libinput_device
) -> c_int

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

@param device A current input device

@return The number of buttons supported by the device.