hidd_get_all_buttons()
Get all buttons that are currently activated
Synopsis:
#include <sys/hiddi.h>
int hidd_get_all_buttons( struct hidd_report_instance *report_instance,
void *report_data,
hidd_button_t *list,
_Uint16t *len );Arguments:
- report_instance
-
The handle of a report (from hidd_report_attach()).
- report_data
-
The raw report data as returned in the report callback.
- list
-
A pointer to a buffer to return the array of buttons currently depressed/on (refer to hidd_button_t).
- len
-
The size of the provided buffer. On return it will contain the number buttons filled in the provided buffer.
Description:
The hidd_get_all_buttons() function gets all buttons that are currently activated. You'd typically use this function in the report callback to get button values for a keyboard, mouse, or joystick.
Returns:
- EOK
- Success.
- EINVAL
- One of the arguments is NULL.
Classification:
QNX OS
| Safety: | |
|---|---|
| Cancellation point | Yes |
| Signal handler | No |
| Thread | Yes |
Page updated:
