![]() |
nRF Connect SDK API 3.3.99
|
| void hid_keymap_init | ( | void | ) |
#include <applications/nrf_desktop/src/util/hid_keymap.h>
Initialize HID keymap.
If assertions (
CONFIG_ASSERT
) are enabled, the function validates if the hid_keymap array defined as part of the configuration is sorted ascending by key ID. The array must be sorted, because HID keymap utility uses binary search to speed up searching through the array.
The function must be called before using other HID keymap APIs. The function can be called multiple times.