hidd_num_buttons()
Get maximum number of buttons returned in a report
Synopsis:
#include <sys/hiddi.h>
int hidd_num_buttons( struct hidd_report_instance *report_instance,
_Uint16t *max_buttons );Arguments:
- report_instance
-
The handle of a report instance, as returned by hidd_get_report_instance().
- max_buttons
-
A pointer to memory where to store the number of maximum number of buttons that will be returned in the report.
Description:
The hidd_num_buttons() function gets the number of buttons returned in a report. This function is typically used to get the buffer sizes that need to be allocated for use with hidd_get_buttons().
Returns:
- EOK
- Success.
- EINVAL
- The report or max_buttons is NULL.
Classification:
QNX OS
| Safety: | |
|---|---|
| Cancellation point | Yes |
| Signal handler | No |
| Thread | Yes |
Page updated:
