0x05,0x0C, // Usage Page (Consumer)
0x09,0x01, // Usage (Consumer Control)
0xA1,0x01, // Collection
0x85,0x02, // Report ID (2)
0x09,0xCD, // Usage (None)
0x09,0xA0, // Usage (VCR Plus)
0x09,0x82, // Usage (Mode Step)
0x09,0xB6, // Usage (Scan Previous Track)
0x09,0xEA, // Usage (Volume Decrement)
0x09,0xE9, // Usage (Volume Decrement)
0x0A,0x2D,0x02, // Usage (AC Zoom In)
0x0A,0x2E,0x02, // Usage (AC Zoom Out)
0x15,0x00, // Logical Minimum (0)
0x25,0x01, // Logical Maximum (1)
0x75,0x01, // Report Size (1)
0x95,0x08, // Report Count (8)
0x81,0x02, // Input
0xC0, // End Collection
说明:这里的Report ID可以根据实际HID服务修改
该描述符支持单拍,连拍,调焦,前后摄像头切换,拍照录像切换。其中,调焦,前后摄像头切换,拍照录像切换功能需要特定的手机才能支持!!
功能 | KeyCode | 备注 |
---|---|---|
调焦放大 | 0x40 | |
调焦缩小 | 0x80 | |
前/后摄像头切换 | 0x04 | |
拍照/录像切换 | 0x02 | |
单拍/连拍 | 0x10/0x20 | 音量加/减 |
按键释放 | 0x00 |
网友评论