nRF Connect SDK API
3.3.99
Loading...
Searching...
No Matches
hid_keymap_def.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2019 Nordic Semiconductor ASA
3
*
4
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5
*/
6
7
#include "
hid_keymap.h
"
8
#include <
caf/key_id.h
>
9
10
/* This configuration file is included only once from hid_state module and holds
11
* information about mapping between buttons and generated reports.
12
*/
13
14
/* This structure enforces the header file is included only once in the build.
15
* Violating this requirement triggers a multiple definition error at link time.
16
*/
17
const
struct
{}
hid_keymap_def_include_once
;
18
19
/*
20
* HID keymap. The Consumer Control keys are defined in section 15 of
21
* the HID Usage Tables document under the following URL:
22
* https://www.usb.org/sites/default/files/hut1_12.pdf
23
*/
24
static
const
struct
hid_keymap
hid_keymap
[] = {
25
{
KEY_ID
(0, 0), 0x01,
REPORT_ID_MOUSE
},
/* Left Mouse Button */
26
{
KEY_ID
(0, 1), 0x02,
REPORT_ID_MOUSE
},
/* Right Mouse Button */
27
{
KEY_ID
(0, 2), 0x03,
REPORT_ID_MOUSE
},
/* Middle Mouse Button */
28
};
REPORT_ID_MOUSE
@ REPORT_ID_MOUSE
Definition
hid_report_desc.h:42
hid_keymap.h
HID keymap header.
KEY_ID
#define KEY_ID(_col, _row)
Definition
key_id.h:26
key_id.h
hid_keymap_def_include_once
const struct @36 hid_keymap_def_include_once
hid_keymap
HID keymap entry.
Definition
hid_keymap.h:29
applications
nrf_desktop
configuration
nrf52dmouse_nrf52832
hid_keymap_def.h
Generated on Wed Jun 10 2026 17:22:24 for nRF Connect SDK API by
1.12.0