![]() |
nRF Connect SDK API 3.3.99
|
| void hid_eventq_cleanup | ( | struct hid_eventq * | q, |
| int64_t | min_timestamp ) |
#include <applications/nrf_desktop/src/util/hid_eventq.h>
Cleanup a HID event queue object instance.
The function removes enqueued events with a timestamp lower than the provided minimal valid timestamp.
Enqueued event related to a key press is not removed if a matching key release event cannot be removed. In that case, the function only removes items up to the first unpaired key press.
| [in] | q | HID event queue object. |
| [in] | min_timestamp | Minimal valid timestamp. |