阅读:5309回复:9
请教对usb mouse如何调用HidD_SetFeature函数
请教对usb mouse如何调用HidD_SetFeature函数,我在应用程序里用CreateFile打开mouse,得到handle后调用HidD_SetFeature,每次都返回FALSE,如何能判断此设备能否支持Feature report?
|
|
沙发#
发布于:2004-10-14 11:50
你看读出的描述福支持不支持就可以拉
|
|
板凳#
发布于:2004-10-14 11:56
是这个吧
typedef struct _HIDP_CAPS { USAGE Usage; USAGE UsagePage; USHORT InputReportByteLength; USHORT OutputReportByteLength; USHORT FeatureReportByteLength; USHORT Reserved[17]; USHORT NumberLinkCollectionNodes; USHORT NumberInputButtonCaps; USHORT NumberInputValueCaps; USHORT NumberInputDataIndices; USHORT NumberOutputButtonCaps; USHORT NumberOutputValueCaps; USHORT NumberOutputDataIndices; USHORT NumberFeatureButtonCaps; USHORT NumberFeatureValueCaps; USHORT NumberFeatureDataIndices; } HIDP_CAPS, *PHIDP_CAPS; 哪个成员能说明这个问题呢?是FeatureReportByteLength吗? |
|
地板#
发布于:2004-10-14 13:49
标准的鼠标是不支持的,你可以自己做一个鼠标,把这部分加上
|
|
|
地下室#
发布于:2004-10-14 13:53
标准的鼠标是不支持的,你可以自己做一个鼠标,把这部分加上 那一部分呢? |
|
5楼#
发布于:2004-10-14 13:56
描述表要加上该部分,
SetFeature用来做什么呢?肯定要有动作吧?那也要加上了 |
|
|
6楼#
发布于:2004-10-14 14:04
描述表要加上该部分, 我就是不清楚描述表要加上什么东西啊,或者说那些成员的值应该设成什么才合适。 另外,这个描述表是应该在驱动里面还是在设备的Firmware里面呢? |
|
7楼#
发布于:2004-10-14 18:38
怎么样加描述表,要根据你要做的东东来确定,
不是加在驱动里,而是加在设备的Firmware里面 |
|
|
8楼#
发布于:2004-10-15 09:58
[quote]怎么样加描述表,要根据你要做的东东来确定,
不是加在驱动里,而是加在设备的Firmware里面 [/q 我是想知道,这个描述表里的哪个值可以决定我能不能用setfeature这个函数呢?谢谢了 :) |
|
9楼#
发布于:2004-10-19 16:38
没人回答,顶一下 :D
|
|