hidd_button_list_same()
Get button usages common to two button usage lists
Synopsis:
#include <sys/hiddi.h>
int hidd_button_list_same( _Uint16t *current,
_Uint16t *previous,
_Uint16t *same,
_Uint16t *len );Arguments:
- current
- An array of button usages as returned by hidd_get_buttons().
- previous
-
An array of button usages as returned by hidd_get_buttons().
- same
- A user-provided buffer to report the list of usages that are in both current and previous.
- len
- The number of elements in the provided buffer. On return it will contain the number usages filled in the provided diff buffer.
Note:
The same array must contain at least len
elements, while the current and previous
arrays must either contain at least len elements, or have the
last element set to 0.
Description:
The hidd_button_list_same() function gets the list of buttons that are in both current and previous. You would typically use this function to determine what buttons have been repeated in successive calls to hidd_get_buttons(). Use hidd_button_list_diff() to get a list of new buttons pressed, or old buttons released.
Returns:
- EOK
- Success.
- EINVAL
- One of the arguments is NULL.
Classification:
QNX OS
| Safety: | |
|---|---|
| Cancellation point | Yes |
| Signal handler | No |
| Thread | Yes |
Page updated:
