ADB codes are what IOHIKeyboard uses for keycodes (codes that represent keys being pressed/released on a keyboard).
The actual codes correspond to a keymap that describes the purpose of the key. You will find the keymap in ACPIKeyboard.cpp, function ACPIKeyboard::defaultKeymapOfLength. You can see each ADB code in the comment at the end of the ADB keycode definition.
For example, in that keymap, 0x00 is the 'A' key, 0x28 is the 'K' key. And 0x90 is brightness up, 0x91 is brightness down.
这个16进制数据中高位字节代表按键的按下与释放,其中 0x11 或 0x12 代表按下, 0x21 或 0x22 代表释放,使用 0x11/ 0x12 代表虚拟的是一个PS2键盘(推荐)
低位字节包含了 ADB 代码,4f代表电源键,不同按键的 ADB 代码如下( The first byte in the pair is an NX_KEYTYPE (codes defined in the SDK ev_keymap.h). The second byte is the ADB code.)