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

◆ hid_keymap_get()

const struct hid_keymap * hid_keymap_get ( uint16_t key_id)

#include <applications/nrf_desktop/src/util/hid_keymap.h>

Get mapping from key ID to HID usage ID.

The function maps an application-specific key ID to HID keymap entry containing HID report ID and HID usage ID.

Parameters
[in]key_idApplication-specific key ID.
Returns
HID keymap entry if mapping for the key ID is defined, NULL otherwise.