EasyManua.ls Logo

TELINK SEMICONDUCTOR TLSR8232 - Keycode

Default Icon
211 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Telink TLSR8232 BLE SDK Developer Handbook
AN-19112700-E1 154 Ver.1.0.0
7.3 Keycode
The section above introduces keymap definition in app_config.h and keycode filling in
KB_MAP_NORMAL. To realize standard USB HID keyboard, some special keycodes
need to be processed, so user should pay attention to details for keycode definition.
The kb_remap_key_row” function in keyboard.c serves to process keycode.
void kb_remap_key_row(int drv_ind, u32 m, int key_max, kb_data_t
*kb_data)
Figure 7-2 Keycode Processing Function
CTRL KEY will be obtained by kb_event.ctrl_key, and its keycode ranges from 0xe0 to
0xe7 which cannot be used by users.
In proj/drivers/usbkeycode.h:
#define VK_CTRL 0xe0
#define VK_SHIFT 0xe1
#define VK_ALT 0xe2
#define VK_WIN 0xe3
#define VK_RCTRL 0xe4
#define VK_RSHIFT 0xe5
#define VK_RALT 0xe6
#define VK_RWIN 0xe7

Table of Contents