nRF Connect SDK API 3.3.99
Loading...
Searching...
No Matches

◆ hid_eventq_keypress_dequeue()

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.

Parameters
[in]qHID event queue object.
[out]idID of the enqueued key.
[out]pressedInformation if the key was pressed or released.
Return values
0when successful.
-ENOENTif there is no keypress event enqueued.