Linux内核最终会拿到HID reports描述符,Linux内核中将HID设备分了4个各类,根据HID reports描述符进行划分,键盘鼠标都属于GENERIC(对应Usage Desktop),而最近流行的触控笔触摸屏属于MULTITOUCH设备(对应Usage Digitizer)。 /* * HID device groups * * Note: HID_GROUP_ANY is declared in linux/mod_devicetable.h *...
group: 'primary', required: ['usb'], }, { labelKey: 'input-mode-options.generic', value: 14, group: 'primary' }, { labelKey: 'input-mode-options.mdmini', value: 6, group: 'mini' }, { labelKey: 'input-mode-options.neogeo', value: 7, group: 'mini' }, { labelKey: 'input...
Learn to develop Windows device drivers for Human Interface Devices (HID). HID is a device class definition for generic USB drivers to support HID devices such as keyboards, mice, game controllers, and so on. Before HID, devices could only utilize strictly defined protocols for mice and keyboar...
0x02 Mouse HID_USAGE_GENERIC_MOUSE 0x04 Joystick HID_USAGE_GENERIC_JOYSTICK 0x05 Game Pad HID_USAGE_GENERIC_GAMEPAD 0x06 Keyboard HID_USAGE_GENERIC_KEYBOARD 0x07 Keypad HID_USAGE_GENERIC_KEYPAD 0x08 Multi-axis Controller HID_USAGE_GENERIC_MULTI_AXIS_CONTROLLERExtended...
* Note: HID_GROUP_ANY is declared in linux/mod_devicetable.h * and has a value of 0x0000 */ #define HID_GROUP_GENERIC 0x0001 #define HID_GROUP_MULTITOUCH 0x0002 #define HID_GROUP_SENSOR_HUB 0x0003 #define HID_GROUP_MULTITOUCH_WIN_8 0x0004 /* ...
The following registry key example shows the settings for the sample HID driver.Copy [HKEY_LOCAL_MACHINE\Drivers\USB\LoadClients\Default\Default\3\Generic_Sample_Hid_Class_Driver] "DLL"="USBHID.dll" This example shows that the driver in Usbhid.dll is called Generic_Sample_Hid_Class_Driver ...
HID类别设备的规范是Device Class Definition for Human Interface Devices。另外还有一份文件HID Usabe Tables,用来定义让主机了解以及使用HID数据的数值。这两份文件是由USB Device Working Group所制定,Group的成员都是USB实施者论坛的会员。您可以在USB实施者论坛网站上下载这两份文件。
= proto) { prev_proto_output = proto; printf("\r\n"); if (proto == HID_PROTOCOL_MOUSE) { printf("Mouse\r\n"); } else if (proto == HID_PROTOCOL_KEYBOARD) { printf("Keyboard\r\n"); } else { printf("Generic\r\n"); } fflush(stdout); } } /** * @brief HID Keyboard ...
kHIDUsage_Csmr_GenericGUIApplicationControls kHIDUsage_Csmr_GraphicEqualizer kHIDUsage_Csmr_GreenMenuButton kHIDUsage_Csmr_Headphone kHIDUsage_Csmr_Help kHIDUsage_Csmr_HoldupAlarm kHIDUsage_Csmr_Illumination kHIDUsage_Csmr_KeyboardBrightnessIncrement kHIDUsage_Csmr_LightEnable kHIDUsage_Cs...
{ .driver_data = MT_CLS_SERIAL, MT_USB_DEVICE(USB_VENDOR_ID_ZYTRONIC, USB_DEVICE_ID_ZYTRONIC_ZXY100) }, /* Generic MT device */ { HID_DEVICE(HID_BUS_ANY, HID_GROUP_MULTITOUCH, HID_ANY_ID, HID_ANY_ID) }, 0 comments on commit 0fa9c61 Please sign in to comment. Footer...