![]() |
nRF Connect SDK API 3.3.99
|
| int hid_eventq_keypress_dequeue | ( | struct hid_eventq * | q, |
| uint16_t * | id, | ||
| bool * | pressed ) |
#include <applications/nrf_desktop/src/util/hid_eventq.h>
Get an enqueued keypress event from HID event queue.
The function gets the first enqueued event from the HID event queue.
| [in] | q | HID event queue object. |
| [out] | id | ID of the enqueued key. |
| [out] | pressed | Information if the key was pressed or released. |
| 0 | when successful. |
| -ENOENT | if there is no keypress event enqueued. |