![]() |
nRF Connect SDK API 3.3.99
|
Utility that simplifies queuing HID events (keypresses). More...
Data Structures | |
| struct | hid_eventq |
| Event queue structure. More... | |
Functions | |
| void | hid_eventq_init (struct hid_eventq *q, uint16_t max_queued) |
| Initialize a HID event queue object instance. | |
| bool | hid_eventq_is_full (const struct hid_eventq *q) |
| Check if a HID event queue is full. | |
| bool | hid_eventq_is_empty (const struct hid_eventq *q) |
| Check if a HID event queue is empty. | |
| int | hid_eventq_keypress_enqueue (struct hid_eventq *q, uint16_t id, bool pressed, bool drop_oldest) |
| Enqueue a keypress event in HID event queue. | |
| int | hid_eventq_keypress_dequeue (struct hid_eventq *q, uint16_t *id, bool *pressed) |
| Get an enqueued keypress event from HID event queue. | |
| void | hid_eventq_reset (struct hid_eventq *q) |
| Reset a HID event queue object instance. | |
| void | hid_eventq_cleanup (struct hid_eventq *q, int64_t min_timestamp) |
| Cleanup a HID event queue object instance. | |
Utility that simplifies queuing HID events (keypresses).